Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat--very slow

 
sreejith panampilly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am changing a application from websphere to Tomcat 5.5, application contains some XML parsing, whenever the parsing done a txt file creating in the Tomcat 5.5 folder and Tomcat became very slow..

Please give some sugessions...

thanks in advance..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the txt file contain? Is it a temporary file that gets discarded?
How big is the XML input?
Is the hardware configuration the same for both Websphere and Tomcat?
Which version of Java?
Using the Java standard library for XML or an external library?

Bill
 
sreejith panampilly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my application is a mobile application, when the content from server sending to mobile using xml, each xml contains not more than 1024kb
Txt file contains contents of xml
each txt file of around 1kb of size
xml contents are not big. it contains 5 tags only.
hardware configuration is same for both Websphere and Tomcat.
version of Java->jdk1.5.0_09
 
sreejith panampilly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application is a mobile application, contents of the server send to mobile using xml, each xml contains not more than 1024kb.
txt files contains the contents of xml.
hardware configuration is same for both Websphere and Tomcat.
version of Java->jdk1.5.0_09
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that your problem is not with the XML parsing but with something else.
Are you load testing with actual mobile connections or an emulator?
Are you giving Tomcat plenty of memory?
Can you use the management app to look at the number of Threads working and how long each response is taking?
I'm assuming Windows - what does the Task manager show for CPU usage when Tomcat is being "very slow."

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic