0

I write a conccurrent process on Java JDK 1.7 and i need know the number of TPS can run my server. My process should configure its number of TPS in the range [1-x].

randiel
  • 290
  • 1
  • 16
  • 1
    If you want to determine that value... you must execute stress tests... Jmeter is a tool that allows you to create and execute stress test... – Carlitos Way May 24 '16 at 05:12
  • Is there any way using correlation with number of cores or some method getMaxThreadsPerCore? – randiel May 24 '16 at 12:29
  • Nop, sorry. There is no easy magic formula, because there are so many factors as: hardware, data, algorithms logic magnitude (Big-O) ... However, you're asking for a method as getMaxThreadsPerCore for limiting you thread pool program to a max thread value?? – Carlitos Way May 24 '16 at 13:48
  • 1
    This method: [availableProcessors](http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#availableProcessors%28%29), will tell you how many threads can run in parallel using a given hardware... Another link of interest: [How to scale threads according to cpu cores?](http://stackoverflow.com/questions/1980832/java-how-to-scale-threads-according-to-cpu-cores) – Carlitos Way May 24 '16 at 19:11

0 Answers0