This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat--very slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat--very slow" Watch "Tomcat--very slow" New topic
Author

Tomcat--very slow

sreejith panampilly
Ranch Hand

Joined: Jun 15, 2006
Posts: 49
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Jun 15, 2006
Posts: 49
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

Joined: Jun 15, 2006
Posts: 49
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat--very slow
 
Similar Threads
My this jsp page is not working
JMS Server embedded in Tomcat 5.5
Application open slow
Web.xml Unknown Host Exception
welcome file list