you need to modify web.xml to point to your jsp file e.g.
<welcome-file>something.jsp</welcome-file>

we can help you with your action class ChangeConfig.jsp when you get around
sending us that class
attached is a picture of jconsole memory profiler run while loading and
init'ing something.jsp
notice the jump to 75% on the initial load but then settling to 30% after
the load which took no more than 1 second

Take a look at this article on non-multi-threaded python applications vs
Java Web applications performance tests
http://mrpointy.wordpress.com/2007/11/06/java-vs-python-performance/
conclusions are that unless you're doing ALOT of I/O (printing) or
Interpteter initialisation performance will increase significantly when
using Java over Python

Martin--
----- Original Message -----
From: "Ofer Kalisky" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, January 24, 2008 10:31 AM
Subject: Re: Tomcat memory leak?


> That's what I'm saying, I've been sitting on this for two days and can't
> figure it out.
> Do you mean to say that you tried it and even when accessing the JSP with
> the script - your memory stays low? What am I doing wrong then?
>
> Please notice the tomcat version and the JRE version I stated (6.0.14,
> jre1.6.0_03).
> One more thing: as I said, I'm trying it with 64M of max heap space, but I
> figured, if it goes to 99.9% mem use, there's no use raising it (even
though
> I tried and it reached 99.9% after a short while)
>
> Ofer.
>
> ----- Original Message -----
> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Thursday, January 24, 2008 5:25 PM
> Subject: Re: Tomcat memory leak?
>
>
> >I downloaded your example.
> > So you are telling us, that simply calling a JSP file with html markup
> > only and without any code kills your tomcat?
> >
> > Regards
> > Leon
> >
> > On Jan 24, 2008 4:19 PM, Ofer Kalisky <[EMAIL PROTECTED]> wrote:
> >> Ok, since sending an attachment doesn't work,
> >>
> >> simply create a webapp by the name of LoadTest and create two files
> >> inside:
> >> something.jsp and something.html
> >>
> >> the content of both files should be:
> >>
> >> <html><body/></html>
> >>
> >>
> >> try the load.py with both:
> >>
> >> import httplib
> >>
> >> i = 0
> >> while 1:
> >>  conn = httplib.HTTPConnection("localhost:8080")
> >>  conn.request("GET", "/LoadTest/something.jsp")
> >>  r1 = conn.getresponse()
> >>  if (i % 500 == 0):
> >>   print i
> >>  i = i + 1
> >>  conn.close()
> >>
> >> sorry for any inconvenience
> >>
> >> Ofer.
> >>
> >> ----- Original Message -----
> >> From: "Ofer Kalisky" <[EMAIL PROTECTED]>
> >> To: "Tomcat Users List" <users@tomcat.apache.org>
> >>
> >> Sent: Thursday, January 24, 2008 5:08 PM
> >> Subject: Re: Tomcat memory leak?
> >>
> >>
> >> >I think the mailing list blocks war files...
> >> >
> >> > trying with zip...
> >> >
> >> > ----- Original Message -----
> >> > From: <[EMAIL PROTECTED]>
> >> > To: "Tomcat Users List" <users@tomcat.apache.org>
> >> > Sent: Thursday, January 24, 2008 5:00 PM
> >> > Subject: Re: Tomcat memory leak?
> >> >
> >> >
> >> > Good Morning Ofer
> >> >
> >> > I dont see attachement of /LoadTest/something.jsp
> >> >
> >> > Martin-
> >> >  ----- Original Message -----
> >> >  Wrom: FPEGAUTFJMVRESK
> >> >  To: users@tomcat.apache.org
> >> >  Sent: Thursday, January 24, 2008 9:51 AM
> >> >  Subject: Tomcat memory leak?
> >> >
> >> >
> >> >  Hi,
> >> >
> >> >  I know it's weird, but I'm doing the simplest thing and can't
believe
> >> > there such a leak that I'm the first one to notice. I bet it's my
bad,
> >> > please someone explain, what I'm doing wrong...
> >> >
> >> >  I created the simplest JSP and when I load test it - tomcat (6.0.14,
> >> > jre1.6.0_03) goes to 99.9% memory use in a few minutes (If I raise
the
> >> > max
> >> > heap size it takes longer, but it happens several minutes
afterwards),
> >> > and
> >> > when I stop bombarding it, it doesn't return to the usual percentage.
> >> >
> >> >  When I try the same with an HTML instead of a JSP, that returns
> >> > exactly
> >> > the same - it stays on 12%-20%, cleans with the garbage collector,
and
> >> > returns to the usual percentage (about 12%).
> >> >
> >> >  I tried profiling with several plugins and external programs, but I
> >> > really
> >> > can't understand what's going on. They tell me that most of the
> >> > allocated
> >> > bytes are "char[]", but I'm not sure who's the allocator and if
there's
> >> > anything I can do about it...
> >> >
> >> >  Attached are:
> >> >  1. a test in python that bombards the tomcat,
> >> >  2. a war with both something.jsp and something.html (they are both
the
> >> > same, but when I bombard something.html everything is ok, and when I
do
> >> > the
> >> > same for something.jsp - the problem occurs)
> >> >
> >> >  Can anyone tell me what I'm doing wrong? does it happen to you too?
> >> >
> >> >  Thanks, Ofer.
> >> >
> >> >
> >>
> --------------------------------------------------------------------------
----
> >> >
> >> >
> >>
  ---------------------------------------------------------------------
> >> >  To start a new topic, e-mail: users@tomcat.apache.org
> >> >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >  For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >>
>
>> -------------------------------------------------------------------------
-------
> >>
> >>
> >>
> >> > ---------------------------------------------------------------------
> >> > To start a new topic, e-mail: users@tomcat.apache.org
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to