File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 12682
    
    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


Java Resources at www.wbrogden.com
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: 12682
    
    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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat--very slow
 
Similar Threads
My this jsp page is not working
Application open slow
welcome file list
JMS Server embedded in Tomcat 5.5
Web.xml Unknown Host Exception