v3.0 memory usage

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

v3.0 memory usage

johnecobo
Hi,

On my first v3.0 application I keep getting what seems
to be memory / heap space /Virtual Memory page issues.
 I have altered conf/server.xml  to maxThreads="3"
acceptCount="50".  The server log said that 3 was to
small and said I should set it to 10.  Soon after that
all died.

Help please.

John C.



               
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: v3.0 memory usage

Erik Bruchez
Administrator
John,

Is your application deployed and used by multiple users, or are you just
using it for development? If the latter, changing the number of threads
in Tomcat should not have much impact, unless you are loading multiple
pages at the same time yourself.

What version of Tomcat is this? Some Tomcat connectors handle threads in
a funky way, such as using 2 threads per connection, and requiring a
minimum number of threads.

Finally, how big is your Java heap?

-Erik

John Cobo wrote:

> Hi,
>
> On my first v3.0 application I keep getting what seems
> to be memory / heap space /Virtual Memory page issues.
>  I have altered conf/server.xml  to maxThreads="3"
> acceptCount="50".  The server log said that 3 was to
> small and said I should set it to 10.  Soon after that
> all died.
>
> Help please.
>
> John C.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: v3.0 memory usage

johnecobo
Erik,

The appln. (not for my usual firm) is currently for
development and client test but soon would be used by
many users (well, not very many but it would be on the
internet).

The Tomcat version is: 5.5.9-1ep.  I was using the OPS
nighly build from 7 Nov.

This problem is on hosted server.  I shall try to find
out how big the heap is.  How big does it need to be
for a low use (specialist little law firm in England)
but public OPS3 site ?

Thanks,

John

--- Erik Bruchez <[hidden email]> wrote:

> John,
>
> Is your application deployed and used by multiple
> users, or are you just
> using it for development? If the latter, changing
> the number of threads
> in Tomcat should not have much impact, unless you
> are loading multiple
> pages at the same time yourself.
>
> What version of Tomcat is this? Some Tomcat
> connectors handle threads in
> a funky way, such as using 2 threads per connection,
> and requiring a
> minimum number of threads.
>
> Finally, how big is your Java heap?
>
> -Erik
>
> John Cobo wrote:
> > Hi,
> >
> > On my first v3.0 application I keep getting what
> seems
> > to be memory / heap space /Virtual Memory page
> issues.
> >  I have altered conf/server.xml  to maxThreads="3"
> > acceptCount="50".  The server log said that 3 was
> to
> > small and said I should set it to 10.  Soon after
> that
> > all died.
> >
> > Help please.
> >
> > John C.
>
> >
> --
> You receive this message as a subscriber of the
> [hidden email] mailing list.
> To unsubscribe:
> mailto:[hidden email]
> For general help:
> mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>


               
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: v3.0 memory usage

Erik Bruchez
Administrator
The JVM default may be as low as 64 MB (for Sun's JVM it was 16 MB with
1.1, 64 MB with 1.2, 1.3 and 1.4, and I don't know for 1.5). This is too
small for OPS.

At a strict minimum use 128 MB of heap space, but you should probably go
with 256 MB or more to be a little safer. Of course it depends on
factors such as the kind of XSLT stylesheets your are running, etc.

You can also play with cache size to get to a tradeoff of memory vs.
performance.

-Erik

John Cobo wrote:

> Erik,
>
> The appln. (not for my usual firm) is currently for
> development and client test but soon would be used by
> many users (well, not very many but it would be on the
> internet).
>
> The Tomcat version is: 5.5.9-1ep.  I was using the OPS
> nighly build from 7 Nov.
>
> This problem is on hosted server.  I shall try to find
> out how big the heap is.  How big does it need to be
> for a low use (specialist little law firm in England)
> but public OPS3 site ?
>
> Thanks,
>
> John


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws