LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-26-2010, 09:17 AM   #1
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Rep: Reputation: 0
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

Last edited by techM; 05-26-2010 at 09:19 AM.
 
Old 05-27-2010, 02:13 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Solaris 10 is usually faster than Solaris 9. There must be another factor to explain that difference.
 
Old 05-28-2010, 08:58 AM   #3
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
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.
 
Old 05-28-2010, 09:13 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Hard to guess if you give no clue ... There are plenty of reasons that might explain why a system is running slower than another.
 
Old 05-31-2010, 03:53 AM   #5
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
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%.
 
Old 06-02-2010, 01:46 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 ?
 
Old 06-02-2010, 07:47 AM   #7
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
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
 
Old 06-02-2010, 11:13 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-03-2010, 02:10 AM   #9
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
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

Last edited by techM; 06-03-2010 at 02:11 AM.
 
Old 06-03-2010, 11:37 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tomcat or java mahmoud Linux - Software 3 10-02-2008 03:48 AM
Apache-tomcat on solaris 8 ayush1440 Solaris / OpenSolaris 2 04-04-2008 06:27 AM
Tomcat on Solaris 10 Dox Systems - Brian Solaris / OpenSolaris 20 06-19-2007 09:36 AM
Java, apache, tomcat @ngelot Linux - Software 0 11-03-2005 05:55 AM
java ant tomcat j-ray Linux - Software 1 09-12-2002 11:59 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration