Re: tomcat memory question

2010-05-28 Thread sesfei
hi, Christopher Schultz, Pid, Jeffrey Janner Thanks for your reply. Are you using a 64-bit or 32-bit JVM? yes, that is 64-bit JVM. What is the command you used to produce your jstat output? Well, the comand is [root]# jstat -gc {tomcat pid} 3000 that command means every 3 seconds to print

Re: Tomcat died on "java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space?" message

2010-05-28 Thread Kees Jan Koster
Dear Leon, > > It'd be nice to see some speed comparisons between "-client" "-server" and > "-Xint" options and not only "-server" vs "-Xint". > I did some benchmarks with these settings. I was actually exploring hyperthreading in P4 hardware when I found -server to be twice as fast for even simp

THANK YOU ALL for help

2010-05-28 Thread Yucca Nel
thejarbar.org is up but has one final bug that I don't understand as this works on my development rig. I am using container managed security in two places Hello all abd thank you for all te amazing help. thejarbar.org is now up ans running /it took me a bit longer to get things working becaus

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I inserted the <%request.getRemoteUser()%> in the index.jsp page where that is the only thing on my page, I saw in my browser this error: Error The SCMWeb Inventory/Purchasing web application has encoun

again thank you

2010-05-28 Thread Yucca Nel
this was my first website ever so you all deserver heaps of thank you.

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
One more interesting bit of info is that in my console in Eclipse when debugging my application I saw the following error regarding HTTP: 06:38:31,688 FAIL [HttpFilter] GET /SCMIS/index.jsp HTTP/1.1 accept: */* accept-language: en-us connection: Keep-Alive host: localhost user-agent: Mozilla/4.0

Re: Tomcat died on "java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space?" message

2010-05-28 Thread Rainer Jung
On 28.05.2010 05:12, Leon Kolchinsky wrote: Hello Jung, Thanks for your insights. Learning some new stuff about Java every day ;) I've read this nice blog - http://www.talkingtree.com/blog/index.cfm/2006/4/28/Understanding-HotSpot-in-Plain-English ( UNDERSTANDING HOTSPOT IN PLAIN ENGLISH

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Rainer Jung
On 28.05.2010 13:43, Savoy, Melinda wrote: Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I inserted the<%request.getRemoteUser()%> in the index.jsp page where that is the only thing on my page, I saw in my browser this error: Error The SCMWeb In

tomcat performance differences between windows and linux

2010-05-28 Thread Dave Siracusa
I have created a simple web service which simulates 250 msec worth of work when called. When I test this service from jmeter I make a SOAP request with 50 threads. If I run this test against a Windows hosted tomcat all threads pretty much start at the same time and end within 10-20 msec of

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Terence M. Bandoian
Hi, Melinda- It may be helpful to try that again with the JSP expression syntax: <%= request.getRemoteUser() %> Notice the '=' after the first '%'. -Terence Bandoian Savoy, Melinda wrote: Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I inser

Re: URL Exceeding maxHttpHeaderSize

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/27/2010 5:45 PM, glau_pldm wrote: > Thanks for the help. Using the latest release fixed the empty response; it > doesn't return a 414 but at least it now returns a 400 bad request. Would you mind filing a bug against Tom

Re: tomcat memory question

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 塗, On 5/28/2010 3:11 AM, sesfei wrote: >> Are you using a 64-bit or 32-bit JVM? > yes, that is 64-bit JVM. With such a modest heap (1GiB), you might consider running a 32-bit JVM: you might even get better heap performance with smaller pointers. > [

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yucca Nel, On 5/28/2010 7:43 AM, Yucca Nel wrote: > I am using container managed security in two places This seems like two different problems. Problem #1: > As a matter of interest there > remains a bug that I was unable to get on top pf during de

Re: tomcat performance differences between windows and linux

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 5/28/2010 8:25 AM, Dave Siracusa wrote: > If I run this test against a Windows hosted tomcat all threads > pretty much start at the same time and end within 10-20 msec of each > other. > > When I run the test against a linux hosted tomcat t

Re: Clustering, De-Serialization and Order of Operations

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Howard, On 5/27/2010 8:01 PM, Howard Lewis Ship wrote: > I believe my client is using Tomcat 6; I'll check. > > So, at startup, the Manager reads the saved HttpSession state into > memory, then starts init'ing filters and servlets? I really need to

RE: tomcat memory question

2010-05-28 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: tomcat memory question > > Check may (will?) correct me on this -1 for spelling > I believe a full GC might be necessary to clear-out certain > resources such as completed Threads or other things that have > concre

RE: tomcat performance differences between windows and linux

2010-05-28 Thread Dave Siracusa
Yes both are on the same network and same distance. If I limit it to 30 threads their behavior is the same. As far as the version, it's an embedded 5.5 runing in jboss app server. Regards, Dave > Date: Fri, 28 May 2010 10:06:32 -0400 > From: ch...@christopherschultz.net > To: users@t

Re: unusual IllegalStateException

2010-05-28 Thread Dan Armbrust
Thanks for the thoughts... few things inline > > 2. Does your unexpectedError.jsp use sessions? Does it have <%...@page > session="false"%>? No, I don't think so. I'll have to check into this. > 3. If the response was already partially sent to the client and you > receive an "unexpected" e

Re: tomcat performance differences between windows and linux

2010-05-28 Thread Jeff Hubbs
On 5/28/10 10:06 AM, Christopher Schultz wrote: What about network configuration? Are both servers the same "distance" from you on the network? That's a reasonable question. The only thing I can add - and I wish I knew more about this than I do - is that Linux is configurable to a fault wh

Re: tomcat performance differences between windows and linux

2010-05-28 Thread Jeff Hubbs
On 5/28/10 10:27 AM, Dave Siracusa wrote: Yes both are on the same network and same distance. If I limit it to 30 threads their behavior is the same. By this do you mean that the timing of both systems more closely match each other if you produce just 30 threads on each? As far as the ve

RE: tomcat performance differences between windows and linux

2010-05-28 Thread Dave Siracusa
I think you're spot on. I suspect the default configuration may be causing problems. The box is locked down, I will need to go over it with the sysadmin. I found: http://www.mastertheboss.com/en/jboss-application-server/113-jboss-performance-tuning-1.html Regards, Dave > Date: Fri,

Re: tomcat memory question

2010-05-28 Thread Rainer Jung
On 28.05.2010 16:26, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: tomcat memory question Check may (will?) correct me on this -1 for spelling I believe a full GC might be necessary to clear-out certain resources such as completed Th

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Yucca Nel
Hello and thank you... As a matter of interest there remains a bug that I was unable to get on top pf during development. This minor bug involves loggung out of my application where I need to refresh the page to show that the user has been logged out. The following were tried but failed re

RE: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Martin Gainty
the URL you land on needs to map to a servlet or jsp Servlet package.Servlet Servlet /home/* in this case anyone who lands on WebappName/home/* will invoke package.Servlet (other than political)..is there any reason you want to use a JDBC driver on a

service failed to load and "Error configuring application listener ..."

2010-05-28 Thread Licht Jiang
I tried to deploy a service "MyServices" in a .war file to tomcat5. But tomcat failed to load the service and reported the following: INFO: Deploying web application archive MyServices.war May 28, 2010 3:02:24 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/

RE: service failed to load and "Error configuring application listener ..."

2010-05-28 Thread Caldarale, Charles R
> From: Licht Jiang [mailto:licht.ji...@gmail.com] > Subject: service failed to load and "Error configuring application > listener ..." > > I tried to deploy a service "MyServices" in a .war file to tomcat5. Always, always, always provide the *exact* Tomcat, JRE/JDK, and platform versions you're

possible to define/deploy a context but not start it?

2010-05-28 Thread Jeff Ramin
Running tomcat 5.5.20. Is there a way to configure tomcat such that it is aware of a webapp (context), but doesn't start it (process requests) when tomcat starts? Thanks. -- Jeff Ramin Software Engineer Singlewire Software 2601 W Beltline Hwy #510 Madison, WI 53713 Phone Direct - 608.661.11

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
--- On Fri, 5/28/10, Christopher Schultz wrote: > Problem #2: > >> I noticed another message in intellij complaianing that a mysql >> connecton was not closed but was closed by the container to prevent a >> memory leak. I have look everywhere in code and have closed the >> connection in a final

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-28 Thread Jeffrey Janner
Chuck, et. al. - One final statement on this topic (promise!). After dreaming about this for a few nights, I've come to agree with Chuck. I don't see why, even in a multi-SSL setup, one would want to bother with useIPVHosts=true. Seems like a bit of extra work/thought for a problem that might no

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
I apologize to the list, the last message got truncated and sent. I hit return twice while editing in Yahoo (normally edit off-line). OK - for the database leak. Use try / catch / finally blocks around all connection code (Hibernate or otherwise). I think someone posted boilerplate code to the

Re: possible to define/deploy a context but not start it?

2010-05-28 Thread Pid
On 28/05/2010 19:07, Jeff Ramin wrote: > > Running tomcat 5.5.20. > > Is there a way to configure tomcat such that it is aware of a webapp > (context), > but doesn't start it (process requests) when tomcat starts? Kinda. Examine the docs, look at the Host and Context attributes, for 'deployOnSt

Re: sneaky JDBC connection

2010-05-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yucca Nel, On 5/28/2010 11:34 AM, Yucca Nel wrote: >> So, what does happen if it doesn't redirect? > > It stays on the same page. Are you sure that your link is being followed at all? Does the browser issue a request? > I tried returning "home" from

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
Thanks Terence. Actually I had that in my JSP page (with the "=") but I did not put it below. My apologies. -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Friday, May 28, 2010 8:00 AM To: Tomcat Users List Subject: RE: How can I get the user value in the

TomCat vavel lg

2010-05-28 Thread DOrlov
I'm using a TomCat vavel appender for access log files creation. I'm using %D parameter for log string to measure the time, but it is not exactly clear for me is it a time which server spends for request process, or this time includes time for socket closing? -- View this message in context: ht

RE: TomCat vavel lg

2010-05-28 Thread Caldarale, Charles R
> From: DOrlov [mailto:dor...@redaril.com] > Subject: TomCat vavel lg > > I'm using a TomCat vavel appender It's Tomcat, not TomCat. Which version? Presumably, for "vavel", you mean valve; which one? > I'm using %D parameter for log string to measure the time The %D parameter just causes the