LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris/Tomcat/Java (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-tomcat-java-810221/)

techM 05-26-2010 09:17 AM

Solaris/Tomcat/Java
 
Hi,

My application is running on Solaris9 on tomcat4.0 with JDK1.5. Its working fine no issues. The same code we have migrated to a new system where Solaris10 on tomact4.0 with JDK1.5. But here it become very slow. its taking more than 1 hr for 20 mins task. The task is it connects to other systems thru telnet/ssh and fetch the data and updates the Database.

I am giving the O/P from both the systems.
********************************************************* SOLARIS9 ********************************************************

$ ps -ef | grep tomc

subr 8082 7986 0 10:39:24 pts/4 0:00 grep tomc

$ ps -ef | grep sparc

root 8 1 0 16:44:24 ? 312:06 /usr/jdk/jdk1.5.0_05/bin/sparcv9/java -server -Xms64m -Xmx256m -classpath /usr/

subr 8089 7986 0 10:39:30 pts/4 0:00 grep sparc

$ ps -ef | grep apache

nobody 7334 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

root 7247 1 0 Jan 19 ? 1:08 /usr/apache/bin/httpd

nobody 7328 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7332 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7327 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7330 7247 0 Jan 19 ? 0:16 /usr/apache/bin/httpd

nobody 7333 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7331 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7329 7247 0 Jan 19 ? 0:14 /usr/apache/bin/httpd

nobody 7326 7247 0 Jan 19 ? 0:15 /usr/apache/bin/httpd

nobody 7325 7247 0 Jan 19 ? 0:16 /usr/apache/bin/httpd

subr 8096 7986 0 10:39:39 pts/4 0:00 grep apache





**************************************************** SOLARIS10 ***************************************************

dyapp01: ps -ef | grep tomc

mamasg 22232 21537 0 10:43:54 pts/1 0:00 grep tomc

root 29410 2928 0 08:02:42 ? 841:44 /usr/java/bin/java -Djava.endorsed.dirs=/usr/apache/tomcat/bin:/usr/apache/tomc

dyapp01: ps -ef | grep sparc

root 83 2928 0 May 14 ? 0:00 /esm/bin/solaris-sparc/esmd -fv

mamasg 22623 21537 0 10:43:59 pts/1 0:00 grep sparc

dyapp01: ps -ef | grep apache

nobody 11185 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

mamasg 24295 21537 0 10:44:14 pts/1 0:00 grep apache

nobody 11184 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

root 11104 2928 0 May 14 ? 1:11 /usr/apache/bin/httpd

nobody 11187 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11191 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11193 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11194 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11186 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11188 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

nobody 11192 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

root 29410 2928 0 08:02:42 ? 843:43 /usr/java/bin/java -Djava.endorsed.dirs=/usr/apache/tomcat/bin:/usr/apache/tomc

nobody 11190 11104 0 May 14 ? 0:00 /usr/apache/bin/httpd

dyapp01:

Pls help me regarding this.
Thanks in advance.
M

jlliagre 05-27-2010 02:13 AM

Solaris 10 is usually faster than Solaris 9. There must be another factor to explain that difference.

techM 05-28-2010 08:58 AM

Quote:

Originally Posted by jlliagre (Post 3982613)
Solaris 10 is usually faster than Solaris 9. There must be another factor to explain that difference.

thats what where the problem lies, what could be the other probs.

jlliagre 05-28-2010 09:13 AM

Hard to guess if you give no clue ... There are plenty of reasons that might explain why a system is running slower than another.

techM 05-31-2010 03:53 AM

Solaris/Tomcat/Java
 
My observations are, when i check CPU usage its showing 92% idle, but in the process it is showing Java is using more than 500%.

jlliagre 06-02-2010 01:46 AM

The information you provide is too sparse. Please tell what commands you are running and their results on each system.
Are both platforms using the same hardware ?

techM 06-02-2010 07:47 AM

solaris/java/tomcat
 
here in solaris10, java multithreads are running in single thread fashion. where as in solaris9 the same code running in multithreaded fashion. Thats why its taking much time on solaris10.
How could i handle this problem?

Thanks
techM

jlliagre 06-02-2010 11:13 AM

How do you think anyone can help if you don't care answering the questions asked to you ?

In any case, your analysis is dubious. Solaris 9 and 10 both use the same one-to-one java threading model. The previous many-to-many model was only available with Solaris 8 and older.

techM 06-03-2010 02:10 AM

Solaris10 Server details
================

System = SunOS
Node = *****app01
Release = 5.10
KernelID = Generic_141414-02
Machine = sun4v
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 128

Solaris9 Server details
================

System = SunOS
Node = *****01
Release = 5.9
KernelID = Generic_112233-08
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2

Sorry for inconvinience. Pls let me know if any info required. One more point this application is running directly under root.

Thanks,
techM

jlliagre 06-03-2010 11:37 AM

You are using machines of different architecture. This is more likely to be the reason why you see differences, not the OS release.


All times are GMT -5. The time now is 08:15 AM.