Announcement

Collapse
No announcement yet.

OTM 5.5 Red Hat Enterprise 4 Tomcat 5.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • OTM 5.5 Red Hat Enterprise 4 Tomcat 5.5

    Hi All,

    I have a quick web server question. Here is some high level info OTM setup:

    Oracle 10.2.0.3
    Red Hat Enterprise Linux 4
    OTM 5.5 CU4 RU2
    Intel hardware

    The Web Server is on it's own box(2-CPU Core 2 Duo, 9GB RAM).

    We recently had a problem with Tomcat 5.5 that prevented users from logging in:

    javax.naming.NamingException: Lookup error: java.lang.OutOfMemoryError: unable to create new native thread; nested exception is:
    INFO | jvm 1 | 2008/06/23 20:57:49 | java.lang.OutOfMemoryError: unable to create new native thread [Root exception is java.lang.OutOfMemoryError: unable to create new native thread]


    The JVM heap size was not configured in the tomcat startup script. We added the following to the tomcat.sh script and restarted the web server processes:

    #setting JVM heap size
    CATALINA_OPTS="-Xms16m -Xmx512m"; export CATALINA_OPTS


    Does anyone here have advice on configuring the JVM heap size for the servlet engine?

    Thanks,

    Joe Patton
    Joe Patton

    Technical Specialist, DB2-Oracle DBA
    Database Management and Support
    Parker Hannifin Corporation

  • #2
    Re: OTM 5.5 Red Hat Enterprise 4 Tomcat 5.5

    Joe,

    You shouldn't be modifying anything but the tomcat.conf file. There are two lines in there:

    wrapper.java.additional.2=-Xms1025m
    wrapper.java.additional.3=-Xmx1025m

    which should be modified and both set to the same amount allocated. I have been able to bump up the JVM heap to 2400 and have it run stable at that setting. Your testing may vary on this but the bare mininum it needs to be set at is 1024, 1536 is really recommended but since you have 9 GB I would bump it to 2400 and drop it down if you have any problems.

    Nick
    If my post was helpful please click on the Thanks! button

    MavenWire Hosting Admin
    15 years of OTM experience

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎