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?
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
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
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."
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat: