• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Tomcat--very slow

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic