How do I read only the XML data in doPost(req,res)?
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java methods which will return only the data part of the request. How can I do this? Thanks, Tom - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
How do I read only the XML data in doPost(req,res)?
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java methods which will return only the data part of the request. How can I do this? Thanks, Tom - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
How do I send and receive raw XML data(not SOAP) to and from Tomcat
I'm familiar with using AXIS webservices to send SOAP-XML to Tomcat and back. But how do i receive a request and send a response with raw XML data so that I can then parse the request with SAX? Thanks so much, Tom - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
Re: [OT] How do I send and receive raw XML data(not SOAP) to and from Tomcat
Duh haven't slept for 48 hours and forgot about servlets. Thanks a lot for reminding me! -Tom QM [EMAIL PROTECTED] wrote: On Mon, Aug 30, 2004 at 01:36:40PM -0700, tom ly wrote: : : I'm familiar with using AXIS webservices to send SOAP-XML to Tomcat and back. But how do i receive a request and send a response with raw XML data so that I can then parse the request with SAX? [I've marked your thread as off-topic.] I'm not sure where you're going with this, but it doesn't sound Tomcat-specific. If you still want to use Axis, scan the docs for message style services. Otherwise, Tomcat doesn't care whether it's processing HTML, plaintext, binary, whatever: you write a servlet that processes the incoming request and sends some response. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
How can I display number of requests over the past n seconds?
I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10 / 15/ 30 / 45 / 60 seconds. I've already implement a Filter will count the total number of requests. I did this with a static int, which is incremented everytime a request comes in. But what should I do so that I can show number of request over past time intervals? Since the present time is always changing, the past n seconds is constantly changing also. Thanks in advance, Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
JProfiler vs. JProbe
My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Which is better? JProfiler vs. JProbe
tom ly [EMAIL PROTECTED] wrote:My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Re: JProfiler vs. JProbe for AXIS webservices?
Sorry, I should of been more specific. Our application is huge AXIS webservices (no typical servlets here) running remotely on a non GUI (all command line) Linux box and we are telneting into the box from a windows pc. Can OptimizeIt be running from a non GUI Linux box, but have statistics shown from a windows box? Peter Lin [EMAIL PROTECTED] wrote: my biased perspective, Borland OptimizeIt is better than JProbe. the last time I tried to use JProbe to profile Tomcat 4 it was ungodly slow. it's probably improved since then. peter tom ly wrote: My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Linux memory management with Tomcat question
I've got tomcat running on a Linux machine with 2000GB of RAM. The tomcat settings are JAVA_OPTS=-server -Xms1500M -Xmx1500M; therefore, when i start Tomcat, I'll see free memory drop to about 500MB - which is expected. But, when tomcat is running and especially under heavy load the free memory continues to drop while buffer and cache rises. I understand that Linux places all used memory into the buffer and cache and puts it back to free memory when needed. But I'm confused as to why free memory would be used at all since 1500MB of memory has already been allocated to Tomcat. I mean, why isn't it pulling from it's own heap instead of consuming Linux's free memory? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Re: Linux memory management with Tomcat question
Thanks for the reply Peter. Which OS are you using? Peter Lin [EMAIL PROTECTED] wrote: ok, so your server has 2GB of ram or 2000Mb. the memory usage may increase for several reasons, the primary one is there's a slow leak in one of your applications. This may be as simple as several objects referencing each other. If they happen to result in circular references, the garbage collector may not reclaim the heap memory if the server is under moderate load. Eventually the VM would garbage those objects, but for the short term it would look just like a leak. Another possible cause is if the sessions are set to never expire or expire in a very long time, like 1 day or greater. In general, I profile my webapps and use JMeter to simulate load. I strive for flat memory usage under constant load. A simple thing like clearing all the arrays or nulling references in a object structure will insure the heap is garbage ASAP instead of several minutes. Say I make an object model for some data that has a hierarchical structure. Once I'm done with translating the data into HTML, I clear that object structure to make sure the heap is garbaged efficiently. I hope that helps. peter --- tom ly wrote: I've got tomcat running on a Linux machine with 2000GB of RAM. The tomcat settings are JAVA_OPTS=-server -Xms1500M -Xmx1500M; therefore, when i start Tomcat, I'll see free memory drop to about 500MB - which is expected. But, when tomcat is running and especially under heavy load the free memory continues to drop while buffer and cache rises. I understand that Linux places all used memory into the buffer and cache and puts it back to free memory when needed. But I'm confused as to why free memory would be used at all since 1500MB of memory has already been allocated to Tomcat. I mean, why isn't it pulling from it's own heap instead of consuming Linux's free memory? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
How can you limit the max life-time for a servlet using filters?
Once in a while we're getting out of thread errors with Tomcat. We have a requirement timeout of 5 seconds. Is there a way to use Filters (or whichever any other method) so that we can limit the time that a thread/servlet stays alive. - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()?
What's the difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Difference between org.apache.axis.client.Stub.setTimeout() vs. Call.setTimeout()?
tom ly [EMAIL PROTECTED] wrote:What's the difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Do Filters and the servlets part of the same thread?
Are the servlets and the Filters that filters that particular servlet part of the same thread? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
How can I maintain state with Axis webservice in Tomcat?
I've got multiple instance of a presentation front end sending requests to multiple instances of the component I'm building. I know about using cookies for state management, but it won't work with our case because we don't connect to any client web browser. The front end does provide a unique id that is persistent throughout the lifecycle of the request. How can I use this unique id as the unique identifier so that I can manage state within AXIS web services. - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?
I started up tomcat with both the Sun JDK and JRockit. Even without any load, the total avaiable memory contiues to drop. Why does this happen? Thanks, Tom tom ly [EMAIL PROTECTED] wrote: Background threads? What can be causing them to occur? If you have any suggestions on where to look that'll be great. Thanks Tom Tim Funk wrote: Sounds like background threads doing bad things or things that the GC can't resolve as candidate for freeing. -Tim tom ly wrote: The Free Memory(not the java heap) continues to drop even when there is nothing going on with tomcat. It gets to the point where there is hardly any left and we have to restart tomcat. I'm using JRockit and have my JAVA_OPTS=-server -Xms1200 -Xmx1200 on a Pentium 3 machine with 2GB of RAM. I'm new to Memory profiling but can't seem to find any lingering objects using JProbe, besides, the Free Memory continues to drop on the machine over the weekend when no testing is taking place. What can be wrong? Any help would be great. Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?
Background threads? What can be causing them to occur? If you have any suggestions on where to look that'll be great. Thanks Tom Tim Funk [EMAIL PROTECTED] wrote: Sounds like background threads doing bad things or things that the GC can't resolve as candidate for freeing. -Tim tom ly wrote: The Free Memory(not the java heap) continues to drop even when there is nothing going on with tomcat. It gets to the point where there is hardly any left and we have to restart tomcat. I'm using JRockit and have my JAVA_OPTS=-server -Xms1200 -Xmx1200 on a Pentium 3 machine with 2GB of RAM. I'm new to Memory profiling but can't seem to find any lingering objects using JProbe, besides, the Free Memory continues to drop on the machine over the weekend when no testing is taking place. What can be wrong? Any help would be great. Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?
The Free Memory(not the java heap) continues to drop even when there is nothing going on with tomcat. It gets to the point where there is hardly any left and we have to restart tomcat. I'm using JRockit and have my JAVA_OPTS=-server -Xms1200 -Xmx1200 on a Pentium 3 machine with 2GB of RAM. I'm new to Memory profiling but can't seem to find any lingering objects using JProbe, besides, the Free Memory continues to drop on the machine over the weekend when no testing is taking place. What can be wrong? Any help would be great. Thanks, Tom - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
which memory profiling tool is better for tomcat?
I've got Tomcat running Axis in a Non-GUI Linux Environment, so I'll have to be able to monitor tomcat from a GUI windows environment. The options I've come across are Rational Purify and JProbe. Rational Purify doesn't seem to be as tailored for Web Servers as JProbe, and I've found nothing in Rational Purify's documentation describing how to run a Web Server in non-graphical Linux bur monitor from a Windows machine which I do see that JProbe do. Is Rational Rose a good choice for Tomcat memory analysyst? - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Call to webservice always fails on first try
I've got AXIS as a webapp inside Tomcat. When I use JRockit1.4.1SP2, for some reason it always fails on the first invoke to the webservice upon startup of Tomcat, but then runs fine after that. I don't get the problem with Sun JDK1.4.2. The error from the client is: (500)Internal Server Error at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.aol.tei.routing.UCIInformationSoapBindingStub.re_getUCI(UCIInformationSoapBindingStub.java:143) at com.aol.tei.routing.UCITest.main(UCITest.java:51) - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Is Tomcat with JRockit and Intel Xeon Processor okay?
I hear that JRockit only works with Intel processors. Will it work with the new Xeon Processor? - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: Is Tomcat, Axis, JRockit and Intel Xeon Processor okay?
Forgot to add that I'm running web services with Axis tom ly [EMAIL PROTECTED] wrote:I hear that JRockit only works with Intel processors. Will it work with the new Xeon Processor? - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
Re: Tomcat very very slow when doing heavy XML processing
It seems that much of the lag is taking place with the http connectors, the time spent processing is much less than the time it takes to send the reqest back through the http connector. For instance, from looking at the SOAP logs, i can see that the thread took 3 seconds to process inside of AXIS soap engine, but when i look at the responce time in JMeter, I see 10 seconds to get a response. Peter Lin [EMAIL PROTECTED] wrote: If you look at the XML numbers in my performance article, you'll see that XML is very memory and CPU intensive. There's very little you can do about XML eating tons of resources and being slow. Until motherboards come with XML accelerators built in, XML performance will be slow. You may want to consider using hardware accelerators, or not using XML, if performance is really important. This is true of all XML parsers be it C, C++, .NET, Java, Perl or Python. Some are faster than others, but they are all CPU and memory intensive. peter lin - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: Tomcat very very slow when doing heavy XML processing
Thanks for the reply peter! The CPU and memory on the server seem to have a lot left over that we're not using, we're using about 15-20% of them. Is there some way I can utilized more CPU and memory in order to improve performance. We're the middleware where the frontend sends XML-RPC messages to us convert this data into XML before we send it to a backend, the backend processes the data then responds to us with XML data, we then convert this data and respond it back to the front end. We're hoping to have 20 req/sec per server for production, is this a feasible target? Right now our speed is at 6 req/sec. Our specs for production( we have Intel Pentium 3 now) are dual 2.8 Ghz Xeon processors with 512MB cache, 2GB RAM, 36GB HD, Redundant fans. Peter Lin [EMAIL PROTECTED] wrote: If you look at the XML numbers in my performance article, you'll see that XML is very memory and CPU intensive. There's very little you can do about XML eating tons of resources and being slow. Until motherboards come with XML accelerators built in, XML performance will be slow. You may want to consider using hardware accelerators, or not using XML, if performance is really important. This is true of all XML parsers be it C, C++, .NET, Java, Perl or Python. Some are faster than others, but they are all CPU and memory intensive. peter lin - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
setting keepalive timeout in tomcat??
I'm building a middleware component accepting requests from 2-4 instances of a frontend through a load balancer then relaying the requests to a backend, then returning the response back to the frontend servers. I've load tested with Jmeter and have noticed that the first requests from each thread takes substantially longer than subsequent requests. How can I set the keepalive timeout in Tomcat to a greater value? The keepalive timeout only works from requests from the same ip address. If this is correct, how can I utilized the keepalive timeout more effectively for requests coming from the multiple instances of the frontend? Would sticky sessions be the way to go? Thx Tom - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
Exception:: java.net.SocketTimeoutException: Read timed out whie deploying web service
I get an Exception:: java.net.SocketTimeoutException: Read timed out when i attempt deploy a web service with heavy xml parsing. What can I do? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Re: Tomcat very very slow when doing heavy XML processing
JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome [EMAIL PROTECTED] wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Re: Tomcat very very slow when doing heavy XML processing
I really don't know what -Xss is for, I'll probably lower it now, at least to 1024k, i'm just experimenting. -Xmn though does make a big difference in my case. I can't get my load faster than 6 req/sec with CPU at 14% and memory usage at 11% using the top command in Linux Redhat. Jacob Kjome [EMAIL PROTECTED] wrote: It shouldn't do anything because of case sensitivity. As I said before, it isn't 100M, it is 100m. And I still think that Xss value has got to be a bit off, but if it works for you, who am I to say you shouldn't use it. Jake At 09:05 AM 2/16/2004 -0800, you wrote: JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Re: Tomcat very very slow when doing heavy XML processing
When I load test with JMeter using just 1 thread, my CPU jumps up to 55% while my memory usage stays at 11.5%, more shocking is that overall performance time is even worse?? Each request is taking 8-9 seconds for a response. Whereas with 10 threads, the startup times were bad, but after the load gets rolling, time/request goes up and CPU vs. memory usage is more even.. I'm sure it has something to do with connection speed rather than code processing that is making it so slow. Any advice anyone? My goal is to have performance at 30 requests/sec. tom ly [EMAIL PROTECTED] wrote:I really don't know what -Xss is for, I'll probably lower it now, at least to 1024k, i'm just experimenting. -Xmn though does make a big difference in my case. I can't get my load faster than 6 req/sec with CPU at 14% and memory usage at 11% using the top command in Linux Redhat. Jacob Kjome wrote: It shouldn't do anything because of case sensitivity. As I said before, it isn't 100M, it is 100m. And I still think that Xss value has got to be a bit off, but if it works for you, who am I to say you shouldn't use it. Jake At 09:05 AM 2/16/2004 -0800, you wrote: JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Tomcat very very slow when doing heavy XML processing
I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
How do you configure Standard Error Log?
I've got this is my web.xml, but tomcat won't run with it: Logger className=org.apache.catalina.logger.SystemErrLogger - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: How do you configure Standard Error Log?
sorry, i meant in the server.xml file tom ly [EMAIL PROTECTED] wrote:I've got this is my web.xml, but tomcat won't run with it: - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: How do you configure Standard Error Log?
I did that but I don't see catalina.out. Do you have to do some extra configuration for 4.1.29 to have catalina.out? Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I've got this is my web.xml, but tomcat won't run with it: For starters, you need to enclose attributes in double quotes. Then System.err output will be redirected to $CATALINA_HOME/logs/catalina.out by default. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: How do you configure Standard Error Log?
On Redhat Linux machine I get the catalina.out. But not on my windows computer. On windows, it insteads prints out the out and err streams to the command window. tom ly [EMAIL PROTECTED] wrote:I did that but I don't see catalina.out. Do you have to do some extra configuration for 4.1.29 to have catalina.out? Shapira, Yoav wrote: Howdy, I've got this is my web.xml, but tomcat won't run with it: For starters, you need to enclose attributes in double quotes. Then System.err output will be redirected to $CATALINA_HOME/logs/catalina.out by default. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
how can I change a variable on the fly with shutting down tomcat
I have a variable stored in memory which will be returned for certain xml-rpc requests in tomcat/axis, it needs a initial value upon startup of tomcat. But then I need to be able to change this variable on the fly without shutting down tomcat and then have it be permanently changed afterwards. What can I do? I've though about using a text file. But I want to read from this text file once only during startup of tomcat, store the value in memory for fast access but then be able to change the value in memory as well as the text file on the fly. What can i use to do this? or is there a better way? Regards, Tom Ly - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Are there problems/issues running tomcat with dual Xeon processors and Redhat?
My company might have dual Xeon processors and Linux Redhat during production, are there issues/problem I should be aware of? - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: how can I change a variable on the fly with shutting down tomcat
I don't have to write to a file, as long as I find a way to persistently store the changes and make sure they take effect after a restart. How would I be able to change the static variable on the fly, say through a command line in unix? Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, afterwards. What can I do? I've though about using a text file. But I want to read from this text file once only during startup of tomcat, store the value in memory for fast access but then be able to change the value in memory as well as the text file on the fly. What can i use to do this? or is there a better way? There are many ways ;) Do you HAVE to write out to the file, or can you just change the value in memory? Typically when you want to do something once on startup you do it in a ServletContextListener. Make the variable static and add static accessors for your variable in your context listener implementation. You can specify the configuration file location in web.xml as a context-param, or you can specify the starting variable value itself if you don't need a text file. If you are using a text file and want to write out the final value when your app/server is shutting down, you can do so in the contextDestroyed method of the listener. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
How can I count the number of active requests/servlets for Tomcat?
I'm running a web service using Axis with Tomcat. How can I count the number of active requests? I used the HttpListener interace but the sessionDestroyed method doesn't seem to get called until 5 minutes after the servlet ends. - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
Re: How can I count the number of active requests/servlets for Tomcat 4.1.29?
i'm using tomcat 4.1.29 Tom Ly [EMAIL PROTECTED] wrote:I'm running a web service using Axis with Tomcat. How can I count the number of active requests? I used the HttpListener interace but the sessionDestroyed method doesn't seem to get called until 5 minutes after the servlet ends. - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
How do you generate a unique number for each request across muliple tomcat instances?
I have an application where I need to generate a unique int for each request that comes in. I've got about 8 Tomcat instances running spread across four machines(two tomcat's each machine). It's pretty simple with one Tomcat, but with mulitple Tomcats it gets tricky. I tried using InetAddress to get the ip address of the current machine and use that to set the range for each tomcat(since the ip address will always be unique), but since I'm using Linux, it'll always return 127.0.0.1 as the ip address, so I can use class InetAddress. Any advice on what to do? - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
How do I generate a unique number for each request across muliple tomcat instances?
I have a web application where I need to generate a unique id(of type int) for each request. I've got 8 tomcats running across 4 machines, 2 tomcats each machine. It's pretty simple to generate a unique id with one tomcat, but with mulitple tomcats, it gets pretty tricky. I tried to use java class InetAddress to get the ip address of the machine and use that to set the range for the numbers, but since I'm using Linux it'll always return 127.0.0.1 as the ip address. Any advice on what to do? - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Re: How do you generate a unique number for each request across muliple tomcat instances?
That works great in a windows environment. But on Linux machines,the line InetAddress.getLocalHost().getHostAddress() will always return 127.0.0.1 Tim Funk [EMAIL PROTECTED] wrote:Ideally use a string for uniqueness, not an int. For an int is too small across a cluster. To get a unique string, concatenate your IP address with java.rmi.server.UID(), for example: String guid = InetAddress.getLocalHost().getHostAddress() + (new java.rmi.server.UID()).toString()); See the javadocs on UID for more info. -Tim Tom Ly wrote: I have an application where I need to generate a unique int for each request that comes in. I've got about 8 Tomcat instances running spread across four machines(two tomcat's each machine). It's pretty simple with one Tomcat, but with mulitple Tomcats it gets tricky. I tried using InetAddress to get the ip address of the current machine and use that to set the range for each tomcat(since the ip address will always be unique), but since I'm using Linux, it'll always return 127.0.0.1 as the ip address, so I can use class InetAddress. Any advice on what to do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Re: How do you generate a unique number for each request across muliple tomcat instances?
bump Tom Ly [EMAIL PROTECTED] wrote:That works great in a windows environment. But on Linux machines,the line will always return 127.0.0.1 Tim Funk wrote:Ideally use a string for uniqueness, not an int. For an int is too small across a cluster. To get a unique string, concatenate your IP address with java.rmi.server.UID(), for example: String guid = InetAddress.getLocalHost().getHostAddress() + (new java.rmi.server.UID()).toString()); See the javadocs on UID for more info. -Tim Tom Ly wrote: I have an application where I need to generate a unique int for each request that comes in. I've got about 8 Tomcat instances running spread across four machines(two tomcat's each machine). It's pretty simple with one Tomcat, but with mulitple Tomcats it gets tricky. I tried using InetAddress to get the ip address of the current machine and use that to set the range for each tomcat(since the ip address will always be unique), but since I'm using Linux, it'll always return 127.0.0.1 as the ip address, so I can use class InetAddress. Any advice on what to do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
How to load test an Axis Service in Tomcat?
I've been using to JMeter to load test Tomcat on a RedHat machine. How can I load test an Axis service? - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Shell script to check if Tomcat is running?
I plan on using cron to automatically run a script to check if Tomcat is running. How would I write one? -Tom - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard