Multi CPU configuration for a webapplication deployed on tomcat
Vijay Kumar koganti
Ranch Hand
Joined: Jan 23, 2006
Posts: 53
posted
0
Hi all,
can you let me know how can i configure Multiple CPU's on a unix box so that load is shared between two CPU's, currently my cpu utilization is as much as 100%..
Are there any special conifgs reqd.. and any links on the concept behind it.
regards,
vijay
vijay kumar k.
Misha Ver
Ranch Hand
Joined: Mar 03, 2008
Posts: 470
posted
0
How many users are working with your application when you notice that it uses only one CPU? It could be an issue with JVM which your Tomcat uses.
Kees Jan Koster
Ranch Hand
Joined: Mar 31, 2009
Posts: 222
posted
0
Dear Vijay,
Make sure you use a modern VM (Java 1.6) because locking strategies improved dramatically over time.
From there, use thread dumps to analyze what your code is doing. Go through them to reduce lock contention and make your code more suitable for multi-processor machines.
Misha Ver wrote:How many users are working with your application when you notice that it uses only one CPU? It could be an issue with JVM which your Tomcat uses.
there are 8 users that are using and the JVM i am using is :
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Multi CPU configuration for a webapplication deployed on tomcat