Skip to main content

glassfish 3 acceptor threads tuning

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
obinnahenree
Offline
Joined: 2007-03-08
Points: 0

i was reading a blog post on glassfish tuning and came accross the paragraph:

"One example is acceptor threads, which should be set to a number equal the number of CPU cores in your server. So, if you have 2 CPUs with 4 cores each, the value should be 8."

so on my cent os linux box i have googled some commands and got this:

1) # grep "physical id" /proc/cpuinfo | sort -u | wc -l
to get the no of physical processors/cpu and got value of 1

2) # grep "cpu cores" /proc/cpuinfo |sort -u |cut -d":" -f2
to get the number of physical cores per cpu and got value of 4

does this mean i should set the value of acceptor threads to be : 1 x 4 = 4 ?

thanks