Operating System - Tru64 Unix
1830233 Members
1859 Online
109999 Solutions
New Discussion

Re: Is this mean that memory is not enough ?

 
dd_macle
Occasional Advisor

Is this mean that memory is not enough ?

I had deploy a tomcat application on Tru64 4.0f,but after running a few hours ,
tomcat was terminated abnormally.the memory
of the computer is 256M.

before start tomcat I use the commadn vmstat,
The information is:

Virtual Memory Statistics: (pagesize = 8192)
procs memory pages intr cpu
r w u act free wire fault cow zero react pin pout in sy cs us sy id
2 61 30 4781 21k 4781 42k 11k 11k 223 8204 0 505 2K 613 4 21 76

after tomcat is started :
Virtual Memory Statistics: (pagesize = 8192)
procs memory pages intr cpu
r w u act free wire fault cow zero react pin pout in sy cs us sy id
3 67 30 22k 3108 4879 63k 12k 28k 246 9633 0 50 376 341 4 3 93

after some operations on tomcat,theinformation is:(when the "free" is 23K,the tomcat is down)

Virtual Memory Statistics: (pagesize = 8192)
procs memory pages intr cpu
r w u act free wire fault cow zero react pin pout in sy cs us sy id
2 80 30 26K 130 4516 86 0 40 135 45 48 68 703 683 2 2 96
3 78 31 26K 72 4526 172 0 38 80 135 32 270 482 2K 12 4 85
2 79 31 26K 75 4529 385 0 38 379 346 144 449 1K 3K 18 9 73
2 79 31 26K 112 4529 331 0 38 229 293 116 350 877 2K 7 7 86
2 79 31 26K 72 4530 224 0 38 213 186 86 249 588 2K 2 5 93
2 69 30 2596 23K 4377 195 0 38 120 142 59 255 269 1K 1 9 90
3 68 30 2596 23K 4377 37 0 37 198 0 0 6 169 318 1 0 99
3 68 30 2596 23K 4377 37 0 37 9 0 0 6 169 320 1 1 99

Why cause the tomcat down? is my memory is
not enough?
3 REPLIES 3
Mark Poeschl_2
Honored Contributor

Re: Is this mean that memory is not enough ?

Our tomcat installation has a 'logs' subdirectory. Are you getting anything there?

You are doing some paging ('pout' column) right as tomcat apparently fails so your memory config is suspect, but I'd look for more details in log files first.
dd_macle
Occasional Advisor

Re: Is this mean that memory is not enough ?

the catalina.out shows these information
before tomcat was down:

commitOperationWorkFlow,procid:21,act_id:2
commitOperationWorkFlow,procid:21,act_id:6
java.lang.OutOfMemoryError
at java.lang.Thread.start(Native Method)
at cn.com.detech.batch.BatchTask.raiseRemind(BatchTask.java:115)
at cn.com.detech.batch.BatchTask.run(BatchTask.java:100)
at cn.com.detech.batch.Scheduler$SchedulerTimerTask.run(Scheduler.java:41)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
queryxmldata sql:select * from de20060922093152688 where id=9
segmentation violation at 0x3ffbff70c84
r00 = 0x0000000000000000 r16 = 0x0000000000000000
r01 = 0x0000000000000001 r17 = 0x000000000000000b
r02 = 0x0000000000000001 r18 = 0x000000014688a2a0
r03 = 0x0000000000000000 r19 = 0x0000000000000001
r04 = 0x000003fffff15280 r20 = 0x0000000000000000
r05 = 0x0000000000000000 r21 = 0x0000000040b5cfc8
r06 = 0x0000000000000000 r22 = 0xffffffffffffffff
r07 = 0x0000000000000000 r23 = 0x0000000000000001
r08 = 0x0000000000000000 r24 = 0x0000000000000065
r09 = 0x0000000000000000 r25 = 0x0000000145ed3513
r10 = 0x000000000000000b r26 = 0x000003ffbff7c764
r11 = 0x000000014688a2a0 r27 = 0x000003ff80594940
r12 = 0x00000000000000b6 r28 = 0x0000000040b66b54
r13 = 0x0000000000000004 r29 = 0x000003fffff25280
r14 = 0x000000000000000b r30 = 0x00000001449aaf20
r15 = 0x0000000000000001 r31 = 0x0000000000000000
Stack trace:
pc 0x03ffbff83d70 sp 0x142808260 debug_full_trace (line 1152)
pc 0x03ffbff82b64 sp 0x1428084f0 einfo_segv_handler (line 601)
pc 0x03ff800d8d70 sp 0x142808560 einfo_segv_handler (line 601)
pc 0x03ffbff70c84 sp 0x1449aaf20 vs_resolve_method (line 445)
pc 0x03ffbff7c760 sp 0x1449aaf60 emit_call (line 3644)
pc 0x03ffbff7713c sp 0x1449ab010 translate_instruction (line 1930)
pc 0x03ffbff733c0 sp 0x1449ab0d0 generate_code (line 1007)
pc 0x03ffbff72584 sp 0x1449ab150 compile_method (line 745)
pc 0x03ffbff1c5d0 sp 0x1449ab190 compile_it (line 2843)
pc 0x03ffbff1c254 sp 0x1449ab1b0 class_prepare_method (line 2771)
pc 0x03ffbff283d0 sp 0x1449ab1f0 interpret (line 366)
pc 0x03ffbff283d0 sp 0x1449ab1f0 78: cn/com/detech/deinfo/affair60/web/AffairProcessAction.execute(Lorg/apache/struts/action/ActionMapping;Lcn/com/detech/deinfo/sheet/web/DESheetBaseForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lcn/com/detech/deinfo/users/User;Lcn/com/detech/deinfo/sheet/model/Sheet;)Lorg/apache/struts/action/ActionForward;
pc 0x03ffbff28598 sp 0x1449abad0 interpret (line 1534)
pc 0x03ffbff8a574 sp 0x1449ac5b0 exec_vararg (line 202)
pc 0x03ffbff89ff8 sp 0x1449ac660 interp_wrapper (line 59)
pc 0x03ffbff925d8 sp 0x1449ac690 comp_interp_stub (line 1001)
pc 0x00003e8918f0 sp 0x1449ac710 294: cn/com/detech/deinfo/sheet/web/DESheetBaseAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lcn/com/detech/deinfo/users/User;)Lorg/apache/struts/action/ActionForward;
pc 0x00003e5bb4b4 sp 0x1449ac7a0 459: cn/com/detech/struts/action/DEBaseAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;
pc 0x00003e5b687c sp 0x1449ac810 7: org/apache/struts/action/RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;
pc 0x00003e56d714 sp 0x1449ac850 213: org/apache/struts/action/RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
pc 0x00003e4b7b40 sp 0x1449ac8a0 19: org/apache/struts/action/ActionServlet.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
pc 0x00003e5fdc5c sp 0x1449ac8d0 3: org/apache/struts/action/ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
pc 0x00003e41e688 sp 0x1449ac8e0 139: javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
pc 0x00003e417684 sp 0x1449ac920 30: javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
pc 0x00003e41b188 sp 0x1449ac950 354: org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
pc 0x00003e417100 sp 0x1449ac9b0 101: org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
pc 0x00003e5a3548 sp 0x1449aca00 39: cn/com/detech/struts/util/SetCharacterEncodingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V
pc 0x00003e41ae58 sp 0x1449aca30 117: org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
pc 0x00003e417100 sp 0x1449aca90 101: org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
pc 0x00003e41a0b8 sp 0x1449acae0 670: org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
pc 0x00003e402f14 sp 0x1449acb90 285: org/apache/catalina/core/StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
pc 0x00003e417c5c sp 0x1449acc00 64: org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
pc 0x00003e416968 sp 0x1449acc40 6: org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
pc 0x00003e41cc14 sp 0x1449acc80 42: org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V
pc 0x00003e419244 sp 0x1449accc0 141: org/apache/catalina/connector/CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V
pc 0x00003e3e4720 sp 0x1449acd10 566: org/apache/coyote/http11/Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V
pc 0x00003e4ba800 sp 0x1449acd80 113: org/apache/coyote/http11/Http11BaseProtocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V
pc 0x00003e4a2228 sp 0x1449acde0 45: org/apache/tomcat/util/net/PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V
pc 0x00003e3d3738 sp 0x1449ace40 102: org/apache/tomcat/util/net/LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V
pc 0x00003e3c708c sp 0x1449ace80 167: org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run()V
pc 0x00003e3cb558 sp 0x1449acef0 11: java/lang/Thread.run()V
pc 0x03ffbff928a8 sp 0x1449acf00 unpack_and_call (line 100)
pc 0x03ffbff8a954 sp 0x1449acf10 make_native_call (line 331)
pc 0x03ffbff283f0 sp 0x1449acfc8 interpret (line 368)
pc 0x03ffbff37690 sp 0x1449ad8a8 jni_call (line 583)
pc 0x03ffbff38378 sp 0x1449ad938 jni_CallVoidMethodA (line 70)
pc 0x03ffbff38420 sp 0x1449ad968 jni_CallVoidMethod (line 88)
pc 0x03ffbff2f754 sp 0x1449ad9e8 java_thread_start (line 666)
pc 0x03ffbff2f0e0 sp 0x1449ada08 thread_body (line 515)
pc 0x03ff805a5e1c sp 0x1449adad8 __thdBase (line -1)

is there anyone had encounter such problems ?
thanks a lot !!
dd_macle
Occasional Advisor

Re: Is this mean that memory is not enough ?

which parameters can I use to optimize
the memory ?

thanks !