Author Topic: tomcat memory  (Read 6729 times)

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
tomcat memory
« on: February 13, 2012, 03:04:28 »


to fix the error,i change the  /etc/init.d/qm-tomcat6 file from "export JAVA_OPTS="-Xms2048M -Xmx2048M -server"" to ""export JAVA_OPTS="-Xms3072M -Xmx3072M -server"",but then QM can't start,does tomcat limit the memory?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: tomcat memory
« Reply #1 on: February 15, 2012, 17:09:59 »
No we do not, are you sure the server has enough RAM and the JVM is correct 32/64 bit for your system?

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #2 on: February 16, 2012, 05:08:49 »
i will check the availiable memory

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #3 on: February 19, 2012, 03:00:27 »
not the problem about available memory,any other suggestion?

emilec

  • Newbie
  • *
  • Posts: 43
  • Karma: 4
    • View Profile
    • Email
Re: tomcat memory
« Reply #4 on: February 23, 2012, 14:25:45 »
what is the output of:
# cat /etc/issue
# free
# /usr/local/queuemetrics/java/bin/java -version

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #5 on: February 24, 2012, 08:21:13 »
[root@app ~]# cat /etc/issue
CentOS release 5.6 (Final)
Kernel \r on an \m

[root@app ~]# free
             total       used       free     shared    buffers     cached
Mem:       8309008    8015628     293380          0     222688    5585336
-/+ buffers/cache:    2207604    6101404
Swap:      6291448         12    6291436
[root@app ~]# /usr/local/queuemetrics/java/bin/java
java          javac         javadoc       javah         javap         java-rmi.cgi  javaws       
[root@app ~]# /usr/local/queuemetrics/java/bin/java
java          javac         javadoc       javah         javap         java-rmi.cgi  javaws       
[root@app ~]# /usr/local/queuemetrics/java/bin/java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: tomcat memory
« Reply #6 on: February 24, 2012, 10:26:44 »
You can see it from the DBTEST page of QM, select "View configuration" then "Current memory properties".

emilec

  • Newbie
  • *
  • Posts: 43
  • Karma: 4
    • View Profile
    • Email
Re: tomcat memory
« Reply #7 on: February 24, 2012, 16:28:55 »
Looks to me like you have 32-bit java. Here is what I have on my 64 bit system

# /usr/local/queuemetrics/java/bin/java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

What is the output of:
# uname -a
« Last Edit: February 24, 2012, 17:31:59 by emilec »

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #8 on: March 05, 2012, 03:21:03 »
yes 32bit
after search the google,i found itmay because of the limit of jvm , after a test of "java -XmxXXXXM -version",i found a max stable number is 2600

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #9 on: March 12, 2012, 11:09:20 »
a test in centos 6.2 64bit, 7000M memory is ok

now report 


-- Inner Exception -- - Exception: java.lang.OutOfMemoryError - Error: - PermGen space - Stack trace: - java.lang.OutOfMemoryError: PermGen space - at java.lang.Throwable.getStackTraceElement(Native Method)
« Last Edit: March 12, 2012, 11:11:43 by coolname »

emilec

  • Newbie
  • *
  • Posts: 43
  • Karma: 4
    • View Profile
    • Email
Re: tomcat memory
« Reply #10 on: March 13, 2012, 06:45:19 »
How big is the report your are drawing? Try reduce the date range.

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #11 on: March 13, 2012, 06:51:04 »
i guess about 120000 more,but the report contains only a little items,can QM support more data analysis?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: tomcat memory
« Reply #12 on: March 13, 2012, 08:41:44 »
120000 calls for 7 gigs? this sounds a bit off :-)

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: tomcat memory
« Reply #13 on: March 14, 2012, 02:09:22 »
should i change another jsp container ?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: tomcat memory
« Reply #14 on: March 22, 2012, 11:37:52 »
No - memory looks aplenty.

Try and take a memory dump.