How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
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

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
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

How do I send and receive raw XML data(not SOAP) to and from Tomcat

2004-08-30 Thread tom ly
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

Re: [OT] How do I send and receive raw XML data(not SOAP) to and from Tomcat

2004-08-30 Thread tom ly
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

How can I display number of requests over the past n seconds?

2004-07-29 Thread tom ly
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

JProfiler vs. JProbe

2004-05-13 Thread tom ly
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

2004-05-13 Thread tom ly
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

Re: JProfiler vs. JProbe for AXIS webservices?

2004-05-13 Thread tom ly
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

Linux memory management with Tomcat question

2004-05-13 Thread tom ly
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

Re: Linux memory management with Tomcat question

2004-05-13 Thread tom ly
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

How can you limit the max life-time for a servlet using filters?

2004-05-11 Thread tom ly
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

Difference between org.apache.axis.client.Stub.setTimeout() vs. org.apache.axis.client.Call.setTimeout()?

2004-05-11 Thread tom ly
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()?

2004-05-11 Thread tom ly
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 Filters and the servlets part of the same thread?

2004-05-11 Thread tom ly
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?

2004-04-06 Thread tom ly
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

Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-29 Thread tom ly
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

Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-28 Thread tom ly
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

Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-26 Thread tom ly
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.

which memory profiling tool is better for tomcat?

2004-03-25 Thread tom ly
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

Call to webservice always fails on first try

2004-03-04 Thread tom ly
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

Is Tomcat with JRockit and Intel Xeon Processor okay?

2004-02-23 Thread tom ly
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?

2004-02-23 Thread tom ly
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

Re: Tomcat very very slow when doing heavy XML processing

2004-02-18 Thread tom ly
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

Re: Tomcat very very slow when doing heavy XML processing

2004-02-18 Thread tom ly
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

setting keepalive timeout in tomcat??

2004-02-18 Thread tom ly
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

Exception:: java.net.SocketTimeoutException: Read timed out whie deploying web service

2004-02-17 Thread tom ly
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

2004-02-16 Thread tom ly
? 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

Re: Tomcat very very slow when doing heavy XML processing

2004-02-16 Thread tom ly
... 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

Re: Tomcat very very slow when doing heavy XML processing

2004-02-16 Thread tom ly
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

Tomcat very very slow when doing heavy XML processing

2004-02-13 Thread tom ly
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

How do you configure Standard Error Log?

2004-01-30 Thread tom ly
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?

2004-01-30 Thread tom ly
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

RE: How do you configure Standard Error Log?

2004-01-30 Thread tom ly
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

RE: How do you configure Standard Error Log?

2004-01-30 Thread tom ly
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

how can I change a variable on the fly with shutting down tomcat

2004-01-28 Thread tom ly
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?

2004-01-28 Thread tom ly
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

2004-01-28 Thread tom ly
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,

How can I count the number of active requests/servlets for Tomcat?

2004-01-15 Thread Tom Ly
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!

Re: How can I count the number of active requests/servlets for Tomcat 4.1.29?

2004-01-15 Thread Tom Ly
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

How do you generate a unique number for each request across muliple tomcat instances?

2003-12-16 Thread Tom Ly
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

How do I generate a unique number for each request across muliple tomcat instances?

2003-12-16 Thread Tom Ly
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

Re: How do you generate a unique number for each request across muliple tomcat instances?

2003-12-16 Thread Tom Ly
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

Re: How do you generate a unique number for each request across muliple tomcat instances?

2003-12-16 Thread Tom Ly
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

How to load test an Axis Service in Tomcat?

2003-12-05 Thread Tom Ly
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?

2003-12-01 Thread Tom Ly
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