Cause of CodeBuffer memory exhaustion?

We have had a JASIG uPortal application running under Tomcat with JVM 1.5.0_05-b05 for over a year without any JVM crashes. But now, twice within the last 2 weeks, the JVM has crashed because it has run out of CodeBuffer space. There is a bug report on this (6487381), but the bug evaluation section says "VM Crash due to exhaustion of CodeBuffer space, need to provide a softer landing." This tells me that even if the bug is fixed, there will still be an error of some kind.
What is bothering me is that I can see no reason for the CodeBuffer memory exhaustion in the hs_err_pid15701.log file. How can I find out what caused the memory exhaustion? Both of the crashes occurred during periods of light applicaiton load, and the GC stats seem to indicate that there is plenty of memory available.
Any help would be greatly appreciated. The hs_err_pid15701.log output is below. Thanks!
# An unexpected error has been detected by HotSpot Virtual Machine:
# Internal Error (434F44452255464645520E4350500060 01), pid=15701, tid=15
# Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
--------------- T H R E A D ---------------
Current thread (0x00341318): JavaThread "CompilerThread1" daemon [_thread_in_native, id=15]
Stack: [0x33b02000,0x33b81d70), sp=0x33b7fde0, free space=503k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x6d2704]
V [libjvm.so+0x42b80c]
V [libjvm.so+0x1b1de0]
V [libjvm.so+0x218688]
V [libjvm.so+0x224330]
V [libjvm.so+0x221abc]
V [libjvm.so+0x217950]
V [libjvm.so+0x27fd24]
V [libjvm.so+0x275c1c]
V [libjvm.so+0x2768d8]
V [libjvm.so+0x332140]
V [libjvm.so+0x2da83c]
V [libjvm.so+0x652d58]
Current CompileTask:
opto:9407 ! org.jasig.portal.UserInstance.renderState(Ljavax/servlet/http/HttpServletRequest;Ljav
ax/servlet/http/HttpServletResponse;Lorg/jasig/portal/ChannelManager;Lorg/jasig/portal/i18n/LocaleMa
nager;Lorg/jasig/portal/IUserPreferencesManager;Ljava/lang/Object;)V (2521 bytes)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0135ccd8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266284]
0x014cef80 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266277]
0x02773088 JavaThread "Thread-163071" daemon [_thread_in_native, id=266269]
0x02796250 JavaThread "Thread-163061" daemon [_thread_in_native, id=266254]
0x02d18ae8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266248]
0x03a1b100 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266246]
0x01b8cb30 JavaThread "Thread-163051" daemon [_thread_in_native, id=266235]
0x03a23768 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266227]
0x03a1af40 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266226]
0x00ac6d78 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266190]
0x010bc690 JavaThread "Thread-162977" daemon [_thread_in_native, id=266093]
0x01e1e0f8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266064]
0x01b8ccf0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=266035]
0x00fe6530 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265937]
0x010b9070 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265930]
0x022073a8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265893]
0x02d236f8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265853]
0x0275d630 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265809]
0x02778240 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265716]
0x025ff428 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265583]
0x02337088 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265549]
0x00ac8d80 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265548]
0x01b88dc8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265185]
0x02227808 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265140]
0x0097f438 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265139]
0x02773248 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265057]
0x014c5910 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265024]
0x01e5add8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=265002]
0x0249e028 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264988]
0x012d6f98 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264914]
0x04571230 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264887]
0x015f81f0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264745]
0x0158c258 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264739]
0x00fe5508 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264694]
0x007d4380 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264637]
0x0222ca80 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264623]
0x025c50d0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264606]
0x0249de68 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264596]
0x00f12570 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264565]
0x02606c78 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264548]
0x016ab908 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264481]
0x02d1fa08 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264464]
0x0076c200 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264463]
0x025a6360 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264312]
0x0249fcb0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264293]
0x025a5b98 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264131]
0x0146b9e8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=264110]
0x005c0530 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263911]
0x017713f0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263605]
0x00acb630 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263604]
0x03a02b58 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263564]
0x014c87e8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263563]
0x0264cc18 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263525]
0x025ea728 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263252]
0x03a01250 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263251]
0x022c51c8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263148]
0x03a01090 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263131]
0x00e8d520 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263092]
0x014bff18 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263082]
0x01591e90 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263079]
0x015a8aa0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=263078]
0x02388198 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262738]
0x0235e598 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262712]
0x03a235a8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262540]
0x02e7ac58 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262393]
0x025e70c0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262392]
0x03a00d10 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262358]
0x03a00ed0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262268]
0x010b3658 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262223]
0x025ed920 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262197]
0x01070268 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262196]
0x025e0328 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262011]
0x0222ffd0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=262002]
0x0276c578 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261965]
0x02333d48 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261889]
0x01874f28 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261841]
0x0096a3f0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261777]
0x025eb758 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261755]
0x010b19d0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261651]
0x01e5f058 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261625]
0x0221a1f0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261543]
0x0062e008 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261542]
0x01b8c970 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261534]
0x01580e80 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261435]
0x025e6f00 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261359]
0x00fe92b8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261285]
0x025cd6d8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261264]
0x007912f0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261236]
0x027590c8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=261102]
0x02748138 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=259036]
0x023373c8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=258276]
0x00983b50 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=258096]
0x01e780d0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=258019]
0x02192890 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=257928]
0x002e42a0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=257881]
0x009e23a0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=257856]
0x025f26c0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=257708]
0x02b29128 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=257172]
0x022b5890 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=255735]
0x01baddf8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=255151]
0x022058f8 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=255049]
0x02d47640 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=254806]
0x015d0448 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=253812]
0x025adeb0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=252183]
0x00ed9080 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=250280]
0x00e87c58 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=249544]
0x005ee2a0 JavaThread "JavaMail-EventQueue" daemon [_thread_blocked, id=243050]
0x00510940 JavaThread "TP-Processor160" daemon [_thread_in_native, id=169567]
0x00fcbc48 JavaThread "TP-Processor159" daemon [_thread_blocked, id=169566]
0x01111668 JavaThread "TP-Processor158" daemon [_thread_blocked, id=169565]
0x0212e6e8 JavaThread "TP-Processor157" daemon [_thread_blocked, id=169564]
0x0182ae50 JavaThread "TP-Processor156" daemon [_thread_in_native, id=169558]
0x013c4960 JavaThread "TP-Processor155" daemon [_thread_blocked, id=169557]
0x02359fc8 JavaThread "TP-Processor154" daemon [_thread_blocked, id=169556]
0x010b3498 JavaThread "TP-Processor153" daemon [_thread_in_native, id=169555]
0x00d54918 JavaThread "TP-Processor152" daemon [_thread_blocked, id=169553]
0x01a07020 JavaThread "TP-Processor151" daemon [_thread_in_native, id=169552]
0x012565e8 JavaThread "TP-Processor149" daemon [_thread_blocked, id=169550]
0x00d02d40 JavaThread "TP-Processor148" daemon [_thread_blocked, id=169544]
0x023dab68 JavaThread "TP-Processor146" daemon [_thread_blocked, id=169542]
0x006b0cd8 JavaThread "TP-Processor144" daemon [_thread_in_native, id=169538]
0x012dd0e8 JavaThread "TP-Processor143" daemon [_thread_blocked, id=169537]
0x00774cd8 JavaThread "TP-Processor142" daemon [_thread_blocked, id=169536]
0x02122d78 JavaThread "TP-Processor141" daemon [_thread_blocked, id=169535]
0x01ea2140 JavaThread "TP-Processor133" daemon [_thread_blocked, id=168754]
0x00801200 JavaThread "TP-Processor132" daemon [_thread_in_native, id=168751]
0x017b88b0 JavaThread "TP-Processor126" daemon [_thread_in_native, id=168722]
0x008a8aa8 JavaThread "TP-Processor125" daemon [_thread_in_native, id=168721]
0x011f6bf0 JavaThread "TP-Processor123" daemon [_thread_blocked, id=168703]
0x00d62440 JavaThread "TP-Processor121" daemon [_thread_blocked, id=168701]
0x005423a8 JavaThread "TP-Processor120" daemon [_thread_in_native, id=168511]
0x005f4868 JavaThread "TP-Processor119" daemon [_thread_in_native, id=168510]
0x00fb2308 JavaThread "TP-Processor116" daemon [_thread_blocked, id=168494]
0x00780b38 JavaThread "TP-Processor112" daemon [_thread_blocked, id=168471]
0x018e6d50 JavaThread "TP-Processor111" daemon [_thread_blocked, id=168470]
0x01867210 JavaThread "TP-Processor109" daemon [_thread_blocked, id=168468]
0x024367c0 JavaThread "TP-Processor104" daemon [_thread_blocked, id=167922]
0x019d6b68 JavaThread "TP-Processor103" daemon [_thread_in_native, id=167921]
0x0229f620 JavaThread "TP-Processor100" daemon [_thread_in_native, id=167917]
0x012b2d78 JavaThread "TP-Processor95" daemon [_thread_in_native, id=167912]
0x01071a20 JavaThread "TP-Processor91" daemon [_thread_blocked, id=167908]
0x0299bbe8 JavaThread "TP-Processor86" daemon [_thread_in_native, id=167903]
0x00c77a38 JavaThread "TP-Processor85" daemon [_thread_blocked, id=167902]
0x01910c58 JavaThread "TP-Processor84" daemon [_thread_in_native, id=167901]
0x024b6318 JavaThread "TP-Processor83" daemon [_thread_in_native, id=167900]
0x00e76850 JavaThread "TP-Processor72" daemon [_thread_blocked, id=167889]
0x008771d0 JavaThread "TP-Processor70" daemon [_thread_in_native, id=167887]
0x006b7bf0 JavaThread "TP-Processor68" daemon [_thread_in_native, id=167861]
0x027edd10 JavaThread "TP-Processor59" daemon [_thread_blocked, id=167842]
0x018b0b98 JavaThread "TP-Processor58" daemon [_thread_blocked, id=167841]
0x00ef4690 JavaThread "TP-Processor57" daemon [_thread_blocked, id=167840]
0x017b9078 JavaThread "TP-Processor55" daemon [_thread_blocked, id=167628]
0x00878e58 JavaThread "TP-Processor53" daemon [_thread_blocked, id=167626]
0x007a6950 JavaThread "TP-Processor46" daemon [_thread_in_native, id=160765]
0x010d30a0 JavaThread "TP-Processor41" daemon [_thread_blocked, id=160748]
0x00cdd850 JavaThread "TP-Processor37" daemon [_thread_in_native, id=160723]
0x004061f0 JavaThread "TP-Processor34" daemon [_thread_blocked, id=160687]
0x0116e0e8 JavaThread "Thread-88672" daemon [_thread_blocked, id=143122]
0x0128a780 JavaThread "Thread-88671" daemon [_thread_blocked, id=143121]
0x01b6c758 JavaThread "Thread-88670" daemon [_thread_blocked, id=143120]
0x01749d70 JavaThread "Thread-88669" daemon [_thread_blocked, id=143119]
0x00e23440 JavaThread "Thread-88667" daemon [_thread_blocked, id=143116]
0x019ec860 JavaThread "Thread-88666" daemon [_thread_blocked, id=143115]
0x00e49e20 JavaThread "Thread-88665" daemon [_thread_blocked, id=143114]
0x01239b98 JavaThread "Thread-88663" daemon [_thread_blocked, id=143109]
0x0076d678 JavaThread "Thread-88662" daemon [_thread_blocked, id=143108]
0x00b3b278 JavaThread "Thread-88661" daemon [_thread_blocked, id=143107]
0x00b920c8 JavaThread "Thread-88660" daemon [_thread_blocked, id=143106]
0x00759e18 JavaThread "Thread-88659" daemon [_thread_blocked, id=143105]
0x0234a640 JavaThread "Thread-88658" daemon [_thread_blocked, id=143104]
0x013411f0 JavaThread "Thread-88657" daemon [_thread_blocked, id=143103]
0x00606778 JavaThread "Thread-88656" daemon [_thread_blocked, id=143102]
0x0114f470 JavaThread "Thread-88655" daemon [_thread_blocked, id=143101]
0x0040b588 JavaThread "Thread-88654" daemon [_thread_blocked, id=143100]
0x01aefbf0 JavaThread "Thread-88653" daemon [_thread_blocked, id=143099]
0x02439270 JavaThread "Thread-88652" daemon [_thread_blocked, id=143098]
0x005fec38 JavaThread "Thread-88651" daemon [_thread_blocked, id=143097]
0x01965138 JavaThread "TP-Processor32" daemon [_thread_in_native, id=65561]
0x014196e0 JavaThread "TP-Processor31" daemon [_thread_blocked, id=65560]
0x013d7dc8 JavaThread "TP-Processor29" daemon [_thread_blocked, id=65558]
0x007031e8 JavaThread "Timer-0" daemon [_thread_blocked, id=581]
0x005ecc90 JavaThread "TP-Processor26" daemon [_thread_in_native, id=267]
0x005ecad0 JavaThread "TP-Processor25" daemon [_thread_blocked, id=266]
0x02446190 JavaThread "TP-Processor17" daemon [_thread_blocked, id=121]
0x01130a60 JavaThread "TP-Processor14" daemon [_thread_in_native, id=99]
0x004fd2e8 JavaThread "Thread-47" daemon [_thread_blocked, id=89]
0x00c2a418 JavaThread "Thread-46" daemon [_thread_blocked, id=88]
0x01b489c0 JavaThread "Thread-45" daemon [_thread_blocked, id=87]
0x01acf2e0 JavaThread "TP-Processor10" daemon [_thread_in_native, id=80]
0x00897a18 JavaThread "Thread-39" daemon [_thread_blocked, id=76]
0x009006c0 JavaThread "Thread-38" daemon [_thread_blocked, id=75]
0x008ffc60 JavaThread "Thread-37" daemon [_thread_blocked, id=74]
0x027b8f00 JavaThread "Thread-36" daemon [_thread_blocked, id=73]
0x003f8ce8 JavaThread "Thread-35" daemon [_thread_blocked, id=72]
0x01338c40 JavaThread "Thread-33" daemon [_thread_blocked, id=70]
0x02594ad8 JavaThread "Thread-32" daemon [_thread_blocked, id=69]
0x00d08950 JavaThread "Thread-31" daemon [_thread_blocked, id=68]
0x0185fb98 JavaThread "Thread-30" daemon [_thread_blocked, id=67]
0x00771160 JavaThread "Thread-28" daemon [_thread_blocked, id=52]
0x00cc65b0 JavaThread "Thread-27" daemon [_thread_blocked, id=51]
0x009d50c0 JavaThread "Thread-26" daemon [_thread_blocked, id=50]
0x00ab6318 JavaThread "Thread-25" daemon [_thread_blocked, id=49]
0x009edab8 JavaThread "Thread-24" daemon [_thread_blocked, id=48]
0x00a990d0 JavaThread "Thread-23" daemon [_thread_blocked, id=47]
0x01b4d918 JavaThread "Thread-18" daemon [_thread_blocked, id=40]
0x003a00a0 JavaThread "Thread-16" daemon [_thread_blocked, id=37]
0x017f22c0 JavaThread "Thread-15" daemon [_thread_blocked, id=36]
0x01ac6660 JavaThread "Thread-14" daemon [_thread_blocked, id=35]
0x01ac6440 JavaThread "Thread-13" daemon [_thread_blocked, id=34]
0x003b9c08 JavaThread "Thread-12" daemon [_thread_blocked, id=33]
0x01176860 JavaThread "uPortal ReferenceEntityCache sweeper thread #4" daemon [_thread_blocked, id
=31]
0x01a36580 JavaThread "uPortal ReferenceEntityCache sweeper thread #3" daemon [_thread_blocked, id
=30]
0x010467e8 JavaThread "uPortal ReferenceEntityCache sweeper thread #2" daemon [_thread_blocked, id
=29]
0x01421aa0 JavaThread "Thread-10" daemon [_thread_blocked, id=28]
0x009b3240 JavaThread "uPortal ReferenceEntityCache sweeper thread #1" daemon [_thread_blocked, id
=27]
0x00da46f0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=26]
0x01986f60 JavaThread "TP-Processor4" daemon [_thread_in_native, id=25]
0x011f0808 JavaThread "TP-Processor3" daemon [_thread_blocked, id=24]
0x011f0648 JavaThread "TP-Processor2" daemon [_thread_blocked, id=23]
0x014ec510 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blo
cked, id=21]
0x011ef460 JavaThread "Whirlycache Tuner ( userInfoCache )" daemon [_thread_blocked, id=20]
0x0236d6c8 JavaThread "Whirlycache Tuner ( principalCache )" daemon [_thread_blocked, id=19]
0x02598310 JavaThread "Whirlycache Tuner ( default )" daemon [_thread_blocked, id=18]
0x00342490 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=16]
=>0x00341318 JavaThread "CompilerThread1" daemon [_thread_in_native, id=15]
0x003403e0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=14]
0x0033f4a8 JavaThread "AdapterThread" daemon [_thread_blocked, id=13]
0x003383a0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12]
0x0032b860 JavaThread "YJPAgent-CPUSampler" daemon [_thread_blocked, id=11]
0x00323220 JavaThread "YJPAgent-RequestListener" daemon [_thread_in_native, id=10]
0x00331d20 JavaThread "YJPAgent-Telemetry" daemon [_thread_blocked, id=9]
0x00312880 JavaThread "Finalizer" daemon [_thread_blocked, id=8]
0x001bf9b0 JavaThread "Reference Handler" daemon [_thread_blocked, id=7]
0x001fe030 JavaThread "main" [_thread_in_native, id=1]
Other Threads:
0x0030af68 VMThread [id=6]
0x00343fe8 WatcherThread [id=17]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 310016K, used 250106K [0xc7c00000, 0xdbc00000, 0xf7c00000)
eden space 292352K, 81% used [0xc7c00000,0xd634e4b8,0xd9980000)
from space 17664K, 75% used [0xd9980000,0xda670460,0xdaac0000)
to space 17344K, 0% used [0xdab10000,0xdab10000,0xdbc00000)
PSOldGen total 1647808K, used 1572315K [0x37c00000, 0x9c530000, 0xc7c00000)
object space 1647808K, 95% used [0x37c00000,0x97b76df0,0x9c530000)
PSPermGen total 46848K, used 31224K [0x33c00000, 0x369c0000, 0x37c00000)
object space 46848K, 66% used [0x33c00000,0x35a7e190,0x369c0000)
0x00010000 /usr/java/bin/java
0xff360000 /usr/lib/libthread.so.1
0xff3a0000 /usr/lib/libdl.so.1
0xff280000 /usr/lib/libc.so.1
0xff350000 /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
0xfdc00000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server/libjvm.so
0xff220000 /usr/lib/libsocket.so.1
0xff200000 /usr/lib/libsched.so.1
0xff1d0000 /usr/lib/libCrun.so.1
0xff1a0000 /usr/lib/libm.so.1
0xff080000 /usr/lib/libnsl.so.1
0xff240000 /usr/lib/libw.so.1
0xff160000 /usr/lib/libmp.so.2
0xff060000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/native_threads/libhpi.so
0xfe680000 /nau/local/opt/yourkit/yjp-5.5.4/bin/solaris-sparc-32/libyjpagent.so
0xfe650000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/libverify.so
0xfe610000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/libjava.so
0xfe5f0000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/libzip.so
0xfe4a0000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/libnet.so
0xfe480000 /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/libmanagement.so
0xf7c30000 /usr/lib/nss_nis.so.1
0x33be0000 /usr/lib/nss_files.so.1
VM Arguments:
jvm_args: -Xms1536m -Xmx3072m -XX:+UseParallelGC -XX:NewSize=320m -XX:NewRatio=3 -verbose:gc -XX:+Pr
intGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -agentpath:/na
u/local/opt/yourkit/yjp-5.5.4/bin/solaris-sparc-32/libyjpagent.so=disablealloc,disablecounts,port=10
111,dir=/nau/local/opt/yourkit -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dj
ava.endorsed.dirs=/nau/local/opt/tomcat/common/endorsed -Dcatalina.base=/nau/local/opt/tomcat -Dcata
lina.home=/nau/local/opt/tomcat -Djava.io.tmpdir=/nau/local/opt/tomcat/temp
java_command: org.apache.catalina.startup.Bootstrap start
Environment Variables:
JAVA_HOME=/usr/java
PATH=/nau/local/opt/uportal/bin:.:/nau/local/bin:/nau/share/bin:/usr/sbin:/usr/bin:/usr/ucb:/opt/bin
:/usr/ccs/bin:/opt/RICHPse/bin:/nau/share/oracle:/nau/share/oracle/product/920/bin:/nau/share/oracle
/product/920/OPatch:/nau/local/opt/ant/bin:/nau/local/opt/ant/bin
LD_LIBRARY_PATH=/usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib
/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc
SHELL=/bin/ksh
HOSTTYPE=sun4
OSTYPE=solaris
MACHTYPE=sparc
Signal Handlers:
SIGSEGV: [libjvm.so+0x6d3178], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGBUS: [libjvm.so+0x6d3178], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGFPE: [libjvm.so+0x273260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x273260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x273260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGUSR1: [libjvm.so+0x655038], sa_mask[0]=0x00008000, sa_flags=0x00000008
SIGUSR2: [libjvm.so+0x273260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGHUP: [libjvm.so+0x653eb8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x653eb8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x653eb8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
--------------- S Y S T E M ---------------
OS: Solaris 8 HW 12/02 s28s_hw1wos_06a SPARC
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Assembled 12 December 2002
uname:SunOS 5.8 Generic_108528-23 sun4u (T1 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 4096, AS infinity
load average:0.08 0.03 0.03
CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
Memory: 8k page, physical 6291456k(3143232k free)
vm_info: Java HotSpot(TM) Server VM (1.5.0_05-b05) for solaris-sparc, built on Aug 26 2005 16:11:55
by unknown with unknown Workshop:0x550

I suspect that you've run out of C malloc space for VM data structures for the CodeBuffer and not Java object heap memory. You could use ps to watch the virtual memory usage of the process.
You are running the 32-bit JVM, and have -Xmx3072m reserving 3GB of the available address space for the heap. You are running 200+ threads, whose stacks also use up address space. You could try shrinking the thread stack size with the -XX:ThreadStackSize= command line option. That might cause StackOverflowError's if you need deep stacks. With tuning, one can run thousands of threads.
At the point of the crash you were using 95% of the Java object heap (the PSOldGen), but if that isn't all live data, you could try shrinking your -Xmx a little to leave room for other VM data structures. You can tell what your live data size is by looking at the GC logs after a full collection. You want the PSOldGen to be at least that large, plus at least enough room for a young generation (being somewhat conservative), plus you need space for the young generation itself. You might have to shrink your young generation a little to make it all fit. (I haven't done the math.) Shrinking your young generation will give you more frequent, but probably shorter, young collection pauses.

Similar Messages

  • STORAGE_PARAMETERS_WRONG_SET (EM-Memory exhausted) error in NW04

    Hello experts,
    We are having the following issue in our NW04 running on 32-bit Windows & Oracle 9.2 - report execution on the Portal, in BEx, or in RSRT frequently ends with the ST22 error STORAGE_PARAMETERS_WRONG_SET and text as copied below. At the same time our current parameters (also listed below) appear to be in line or even higher with SAP recommendations. Report design has also been optimized as per SAP suggestions and the overall data volume does not appear to be an issue as well. Have anyone experienced anything like that in BW or would have any suggestions? We have already gone through SAP note 779123 and related notes (546361, 552209, 110172) with no success. I have also seen some SDN posts regarding the error message, but so far nothing seems to apply to our case.
    Any advice is greatly appreciated!
    Profile parameter     Value          Unit
    ztta/roll_area     2,000,000.00     Byte
    ztta/roll_first     1.00          Byte
    ztta/short_area     3,200,000.00     Byte
    rdisp/ROLL_SHM     7,500.00          8 kB
    rdisp/PG_SHM     7,500.00          8 kB
    rdisp/PG_LOCAL     150.00          8 kB
    em/initial_size_MB     6,500.00          MB
    em/blocksize_KB     1,024.00          kB
    em/address_space_MB     512.00     MB
    ztta/roll_extension     2,000,683,008.00     Byte
    abap/heap_area_dia     2,000,683,008.00     Byte
    abap/heap_area_nondia     2,000,683,008.00          Byte
    abap/heap_area_total                     2,000,683,008.00          Byte
    abap/heaplimit     40,894,464.00          Byte
    abap/use_paging     0.00          
    ShrtText
        &INCLUDE INCL_INSTALLATION_ERROR
    What happened?
        The current program had to be terminated because of an
        error when installing the R/3 System.
        The program had already requested 242172048 bytes from the operating
        system with 'malloc' when the operating system reported after a
        further memory request that there was no more memory space
        available.
    What can you do?
        Make a note of the actions and input which caused the error.
        To resolve the problem, contact your SAP system administrator.
        You can use transaction ST22 (ABAP Dump Analysis) to view and administer
        termination messages, especially those beyond their normal deletion
        date.
        Set the system profile parameters
        - abap/heap_area_dia
        - abap/heap_area_nondia
        to a maximum of 242172048. Then reduce the value by 10.000.000 to be on the
        safe side.
        Then restart the SAP System.
        abap/heap_area_nondia and abap/heap_area_dia:
    Set smaller than the memory achieved for each process
    with 'malloc' and smaller than abap/heap_area_total
    You should also check whether the available memory (file system
    swap and main memory) is sufficient for the started program
    and its data.
    r analysis
    When the program was running, it was established that more
    memory was needed than the operating system is able to provide save
    To avoid a system crash, you must prevent this
    situation.
               Last error logged in SAP kernel
    Component............ "EM"
    Place................ "SAP-Server SAP-PBD_PBD_00 on host SAP-PBD (w
    Version.............. 37
    Error code........... 7
    Error text........... "Warning: EM-Memory exhausted: Workprocess gets PRIV'
    Description.......... " "
    System call.......... " "
    Module............... "emxx.c"
    Line................. 1886

    Hi Sudhir,
    These settings need to be done by basis people. Anyhow, you can go to the tcode RZ11 and put in these parameters mentioned in the error message. There will be documentation available for these parameters. Try to see if the defaults are not met for any of these parameters. If you find something strange, report it to the basis. The documentations in this are very helpful. Hope this helps.
    Thanks and Regards
    Subray Hegde

  • [SOLVED] Virtual Memory Exhausted with unused 16g Swap Partition.

    Hello all, long time reader, first time poster. So basically what I'm running into is that I'm having Virtual Memory Exhausted errors with various programs even though I have a 16g swap partition mounted. I've manually enabled it to try it as well. Here's some outputs to give you an idea of how my system is set up. It's a UEFI fresh install, only a couple days old.
    fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    # /dev/sdb3
    UUID=ea7a0311-6314-4215-b98d-7360552b28c4 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sdc3
    UUID=8f6f2006-3a9c-4563-a149-547d758e2af1 /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sdb2
    UUID=baf1ba80-ddf3-4cbb-a13e-b81a0af0a9e7 /boot ext4 rw,relatime,data=ordered 0 2
    # /dev/sdb1
    UUID=2B46-5340 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sdc1
    UUID=4336d783-c289-4fbf-8c59-f1a1da782130 /var ext4 rw,relatime,data=ordered 0 2
    # /dev/sdc2
    UUID=96a60f08-a57f-42f1-80ff-846d02a29199 /var/log ext4 rw,relatime,data=ordered 0 2
    # /dev/sda2
    UUID=c5d5879a-b0e8-4976-8057-2f95975a1251 /share ext4 rw,relatime,data=ordered 0 2
    # /dev/sdb4
    UUID=6e6277c4-a69a-4838-83cd-c206959acf0e /store ext4 rw,relatime,data=ordered 0 2
    #swap
    UUID=21a56b10-85e5-48a1-91e5-995eae0dfba4 none swap defaults 0 0
    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 931.5G 0 disk
    ├─sda1 8:1 0 16G 0 part [SWAP]
    └─sda2 8:2 0 915.5G 0 part /share
    sdb 8:16 0 931.5G 0 disk
    ├─sdb1 8:17 0 1G 0 part /boot/efi
    ├─sdb2 8:18 0 1G 0 part /boot
    ├─sdb3 8:19 0 50G 0 part /
    └─sdb4 8:20 0 879.5G 0 part /store
    sdc 8:32 0 931.5G 0 disk
    ├─sdc1 8:33 0 20G 0 part /var
    ├─sdc2 8:34 0 2G 0 part /var/log
    └─sdc3 8:35 0 909.5G 0 part /home
    sr0 11:0 1 1024M 0 rom
    cat /proc/meminfo
    MemTotal: 12256600 kB
    MemFree: 9926584 kB
    Buffers: 212588 kB
    Cached: 774636 kB
    SwapCached: 0 kB
    Active: 1179860 kB
    Inactive: 638584 kB
    Active(anon): 831604 kB
    Inactive(anon): 14480 kB
    Active(file): 348256 kB
    Inactive(file): 624104 kB
    Unevictable: 4 kB
    Mlocked: 4 kB
    SwapTotal: 16777212 kB
    SwapFree: 16777212 kB
    Dirty: 32 kB
    Writeback: 0 kB
    AnonPages: 831320 kB
    Mapped: 196008 kB
    Shmem: 14892 kB
    Slab: 345008 kB
    SReclaimable: 316620 kB
    SUnreclaim: 28388 kB
    KernelStack: 2616 kB
    PageTables: 27032 kB
    NFS_Unstable: 0 kB
    Bounce: 0 kB
    WritebackTmp: 0 kB
    CommitLimit: 22905512 kB
    Committed_AS: 3365808 kB
    VmallocTotal: 34359738367 kB
    VmallocUsed: 357936 kB
    VmallocChunk: 34359373819 kB
    HardwareCorrupted: 0 kB
    AnonHugePages: 86016 kB
    HugePages_Total: 0
    HugePages_Free: 0
    HugePages_Rsvd: 0
    HugePages_Surp: 0
    Hugepagesize: 2048 kB
    DirectMap4k: 117756 kB
    DirectMap2M: 4059136 kB
    DirectMap1G: 8388608 kB
    swapon -s
    Filename Type Size Used Priority
    /dev/sda1 partition 16777212 0 -1
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 20
    file size (blocks, -f) unlimited
    pending signals (-i) 94832
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 94832
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    I did just notice that it's showing 4gb less RAM than there should be (12 instead of 16, I'll be checking into that about the same time I hit submit) but as far as I can tell the system shouldn't even be worried about swap 99.99% of the time. Any ideas?
    Edit: On reboot system show the full 16gb of RAM.
    Last edited by inquisitorthreefive (2012-11-19 07:44:32)

    inquisitorthreefive wrote:
    I did just notice that it's showing 4gb less RAM than there should be (12 instead of 16, I'll be checking into that about the same time I hit submit) but as far as I can tell the system shouldn't even be worried about swap 99.99% of the time. Any ideas?
    Edit: On reboot system show the full 16gb of RAM.
    Could it be a hardware problem with RAM? Is there a 4 GB RAM chip in the machine that may have failed?

  • Virtual memory exhausted when compiling packages from AUR

    Recently I've seen this error more and more often. When I tried compiling some packages from AUR, I ended up getting "virtual memory exhausted" error. The first time it happened with clementine-git, then android-studio. Can I do something about it?

    I am also facing the same problem.  I am trying to install a package, and the installations aborts saying 'virtual memory exhausted'. The RAM is 2 GB and i have alloted 2 GB as swap.  Things i have tried so far
    -install  using yaourt
    -install using  makepkg.
    -change  TMPDIR to HDD.
    Even when i tried it without any window manager to start, limiting the RAM usage, the problem still persists. The only way is to allot an extra swap space, but that would mean that i will have to delete a partition, which is not a feasible solution. Is there anything else one could do. ?
    if it helps,
    ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 20
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 16033
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16033
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited

  • SP2-0359 memory exhausted error

    I'm trying to upgrade my Apex 3.0.1 installation to the latest one 3.1 on 10 XE R2 database. When running sql script apexins I'm getting error SP2-0359 memory exhausted.
    I think I must extend virtual memory on my laptop. Am I on good trace?
    Tnx in advance for any other suggestions on how to deal with this error.
    I have 1GB of RAM and 26GB of free disk space on my laptop. Also I have enough space left in tablespaces used by upgrade install script.
    With regards,
    Dejan

    Hi,
    I have the same problem.
    I try to upgrade to apex 3.1 on 10 XE R2 on computer with:
    OS      Windows Xp
    Ram     1GB
    Virtual Memory 2GB
    Free disk space 10GB
    Error occurred randomly, on different stage on installation procedure.
    I try to change SGA and PGA, but without success.
    Regards,
    Kosta

  • Virtual Memory Exhausted

    Hi its me again....
    I�m trying to install the latest version of PHP but when I try to compile the following error appears:
    -bash-3.00# gmake
    /bin/sh /build/php-5.2.3/libtool silent preserve-dup-deps --mode=compile gcc  -IZend/ -I/build/php-5.2.3/Zend/ -DPHP_ATOM_INC -I/build/php-5.2.3/include -I/build/php-5.2.3/main -I/build/php-5.2.3 -I/usr/local/include/libxml2 -I/build/php-5.2.3/ext/date/lib -I/usr/sfw/include/mysql -I/build/php-5.2.3/TSRM -I/build/php-5.2.3/Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -g -O2   -c /build/php-5.2.3/Zend/zend_execute.c -o Zend/zend_execute.lo
    virtual memory exhausted: Resource temporarily Unavailable
    gmake: *** [Zend/zend_execute.lo] Error 1
    What do I need to increase this virtual memory or the amount each process can use... ???
    Thank you

    Check the user's session limits and the real swap space usage:
    [SunOS 5.10/bash] [email protected]:/export/home/p661210
    $ swap -l
    swapfile             dev  swaplo blocks   free
    /dev/md/dsk/d20     85,20     16 2097392 2097392
    [SunOS 5.10/bash] [email protected]:/export/home/p661210
    $ ulimit -a
    core file size        (blocks, -c) unlimited
    data seg size         (kbytes, -d) unlimited
    file size             (blocks, -f) unlimited
    open files                    (-n) 256
    pipe size          (512 bytes, -p) 10
    stack size            (kbytes, -s) 8192
    cpu time             (seconds, -t) unlimited
    max user processes            (-u) 16165
    virtual memory        (kbytes, -v) unlimitedCheers,
    Andreas

  • Sp2-0359 memory exhausted oracle in patching

    dear associates,
    can u please assist and find solution regarding this error  :sp2-0359 memory exhausted oracle at the time of patching.
    let me know ASAP.
    ranadheer.

    Hi Ranadheer,
    In order to better assist you, please let us know what is the patch that you were trying to apply.
    What is you OS,DB and Application version.
    Best Regards

  • Excel Macro "Memory exhausted"

    I try to start an Excel Macro and everytime when i started it, comes a message like that: Solver: An unexspected internal error occurred, or available memory was exhausted"
    I try to start the Excel Solver Function with a macro from Labview. I use Excel 2003 and Labview 7.1.
    Thx for help
    Torsten

    Solver is an AddIn that is not installed in a typical Excel installation. If you attempt to run it from the menu, it will prompt that it needs to be installed. This could be what is causing this error. Run the Solver from the menu and check that it is able to run manually.
    After that, check the parameters carefully to make sure that you are not giving the Solver a bad cell reference or an invalid parameter.
    Michael Munroe
    www.abcdef.biz
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Threaded inner classes & heap memory exhaustion

    (_) how can i maximize my threading without running out of
    heap memory?
    push it to the limit, but throttle back before an
    java.lang.OutOfMemoryError.
    (_) within 1 threaded class ThreadClass, i have two threaded inner classes. for each instance of ThreadClass i only
    start one instance of each inner class.
    and, i start hundreds of ThreadClass, but not until the previously running ThreadClass object exits, so only one should be running at any given time.
    so, what about threaded inner classes?
    are they good? bad? cause "OutOfMemoryErrors"?
    are those inner threads not dying?
    what are common causes of:
    java.lang.OutOfMemoryError: java heap space?
    my program runs for about 5-minutes, then
    bails with the memory error.
    how can i drill down and see what
    is eating-up all my memory?
    thanks.

    A Thread class is not the same as a thread of
    execution. Those inner class based threads of
    execution are not dying.maybe. but this is the way i test a thread's life:
    public void run() {
    System.out.println("thread start");
    System.out.println("thread dies and release memory");
    }for each inner thread, and the outer thread, this approach for
    testing thread life reveals that they die.
    Why don't you use a thread pool?ok. i will think about how to do this.
    >
    If not, you need to ensure those inner threads have
    exited and completed.what is a 100% sure check to guarantee a thread exits other than
    the one i use above?
    note:
    the outer thread is running on a remote host, and the inner threads
    are running locally. here are the details:
    public class BB implements Runnable, FinInterface {
      public void run() {
        // do some work on the remote machine
      private void startResultsHandler(OisXoos oisX) {
         ResultHandler rh = new ResultHandler(oisX);
         rh.start();
      public void startDataProxy(OisXoos oisX, String query) {
         DataProxy dp = new DataProxy(oisX, query);
         dp.start();
            public class ResultsHandler extends Thread {
               // runs locally; waits for results from servers
               public void run() {
                   ObjectInputStream ois = new ObjectInputStream(oisX.input);
                    Set result = (Set) ois.readObject();
            }  // ____ class :: _ ResultsHandler _ :: class ____
           public class DataProxy extends Thread {
               // runs locally; performs db queries on behalf of servers
               public void run() {
                   ObjectOutputStream oos = new ObjectOutputStream(oisX.output);
                    while(moreData) {
                        .... // sql queries
                        oos.writeObject(data);
                 StartResultsHandler(oisX);
            } // _____ class  :: _ DataProxy _ :: class _____
    }now, the BB class is not started locally.
    the inner threads are started locally to both service data requests
    by the BB thread as well as wait for its results.
    (_) so, maybe the inner threads cannot exit (but they sure look
    like they exit) until their parent BB thread exits.
    (_) yet, those inner threads have no knowledge that the BB
    thread is running.
    externalizing those inner thread classes will put 2-weeks of work
    in the dust bin. i want to keep them internal.
    thanks.
    here this piece of code that controls everything:
    while(moreData) {
      FinObjects finObj = new BB();
      String symb = (String) data_ois.readObject();
      OisXoos oisX = RSAdmin.getServer();
      oisX.xoos.writeObject(finObj);
      finObj.startDataProxy(finObj, oisX, symb);
    }

  • Result Set Causing out of memory issue

    Hi,
    I am having trouble to fix the memory issue caused by result set.I am using jdk 1.5 and sql server 2000 as the backend. When I try to execute a statement the result set returns minimum of 400,000 records and I have to go through each and every record one by one and put some business logic and update the rows and after updating around 1000 rows my application is going out of memory. Here is the original code:
    Statement stmt = con.createStatement();
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                System.out.println("doing some logic here");
    rs.close();
    st.close();
    I am planning to fix the code in this way:
    Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,
                          ResultSet.CONCUR_UPDATABLE);
    stmt.setFetchSize(50);
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                System.out.println("doing some logic here");
    rs.close();
    st.close();But one of my colleague told me that setFetchSize() method does not work with sql server 2000 driver.
    So Please suggest me how to fix this issue. I am sure there will be a way to do this but I am just not aware of it.
    Thanks for your help in advance.

    Here is the full-fledged code.There is Team Connect and Top Link Api being used. The code is already been developed and its working for 2-3 hours and then it fails.I just have to fix the memory issue. Please suggest me something:
    Statement stmt = con.createStatement();
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                 /where vo is the value object obtained from the rs row by row     
                if (updateInfo(vo, user)){
                               logger.info("updated : "+ rs.getString("number_string"));
                               projCount++;
    rs.close();
    st.close();
    private boolean updateInfo(CostCenter vo, YNUser tcUser) {
              boolean updated;
              UnitOfWork unitOfWork;
              updated = false;
              unitOfWork = null;
              List projList_m = null;
              try {
                   logger.info("Before vo.getId() HERE i AM" + vo.getId());
                   unitOfWork = FNClientSessionManager.acquireUnitOfWork(tcUser);
                   ExpressionBuilder expressionBuilder = new ExpressionBuilder();
                   Expression ex1 = expressionBuilder.get("application")
                             .get("projObjectDefinition").get("uniqueCode").equal(
                                       "TABLE-NAME");
                   Expression ex2 = expressionBuilder.get("primaryKey")
                             .equal(vo.getPrimaryKey());// primaryKey;
                   Expression finalExpression = ex1.and(ex2);
                   ReadAllQuery projectQuery = new ReadAllQuery(FQUtility
                             .classForEntityName("EntryTable"), finalExpression);
                   List projList = (List) unitOfWork.executeQuery(projectQuery);
                   logger.info("list value1" + projList.size());
                   TNProject project_hist = (TNProject) projList.get(0); // primary key
                   // value
                   logger.info("vo.getId1()" + vo.getId());
                   BNDetail detail = project_hist.getDetailForKey("TABLE-NAME");
                   project_hist.setNumberString(project_hist.getNumberString());
                   project_hist.setName(project_hist.getName());
                   String strNumberString = project_hist.getNumberString();
                   TNHistory history = FNHistFactory.createHistory(project_hist,
                             "Proj Update");
                   history.addDetail("HIST_TABLE-NAME");
                   history.setDefaultCategory("HIST_TABLE-NAME");
                   BNDetail histDetail = history.getDetailForKey("HIST_TABLE-NAME");
                   String strName = project_hist.getName();
                   unitOfWork.registerNewObject(histDetail);
                   setDetailCCGSHistFields(strNumberString, strName, detail,
                             histDetail);
                   logger.info("No Issue");
                   TNProject project = (TNProject) projList.get(0);
                   project.setName(vo.getName());
                   logger.info("vo.getName()" + vo.getName());
                   project.setNumberString(vo.getId());
                   BNDetail detailObj = project.getDetailForKey("TABLE-NAME"); // required
                   setDetailFields(vo, detailObj);//this method gets the value from vo and sets in the detail_up object
                   FNClientSessionManager.commit(unitOfWork);
                   updated = true;
                   unitOfWork.release();
              } catch (Exception e) {
                   logger.warn("update: caused exception, "
                             + e.getMessage());
                   unitOfWork.release();
              return updated;
         }Now I have tried to change little bit in the code. And I added the following lines:
                        updated = true;
                     FNClientSessionManager.release(unitOfWork);
                     project_hist=null;
                     detail=null;
                     history=null;
                     project=null;
                     detailObj=null;
                        unitOfWork.release();
                        unitOfWork=null;
                     expressionBuilder=null;
                     ex1=null;
                     ex2=null;
                     finalExpression=null;
    and also I added the code to request the Garbage collector after every 5th update:
    if (updateInfo(vo, user)){
                               logger.info("project update : "+ rs.getString("number_string"));
                               projCount++;
                               //call garbage collector every 5th record update
                               if(projCount%5==0){
                                    System.gc();
                                    logger.debug("Called Garbage Collectory on "+projCount+"th update");
                          }But now the code wont even update the single record. So please look into the code and suggest me something so that I can stop banging my head against the wall.

  • In memory area is enough  ,but table can't  POPULATED in memory  ,cause query in memory slower

    hI
    any expert can take a look this issue, thanks
    SQL>  select * FROM gv$inmemory_area order by 1;
       INST_ID POOL ALLOC_BYTES USED_BYTES POPULATE_STATUS CON_ID
    1 64KB POOL 4278190080   17301504 DONE 0
    1 1MB POOL 17177772032 9377415168 DONE 0
    2 1MB POOL 17177772032 9380560896 DONE 0
    2 64KB POOL 4278190080   17301504 DONE 0
    3 64KB POOL 4278190080   17301504 DONE 0
    3 1MB POOL 17177772032 9385803776 DONE 0
    4 1MB POOL 17177772032 9546235904 DONE 0
    4 64KB POOL 4278190080   17301504 DONE                                0
    8 rows selected
    (IN MEMORY AREA SIZE IS BIG enough)
    SQL> SELECT v.owner, v.segment_name name,v.populate_status status, v.bytes_not_populated FROM  v$im_segments v;
    OWNER                                                                            NAME                                                                             STATUS    BYTES_NOT_POPULATED
    BI                                                                               PERFTABLE5                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE3                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE4                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE2                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE3                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE1                                                                       COMPLETED           165855232
    BI                                                                               PERFTABLE4                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE3                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE1                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE4                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE5                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE3                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE2                                                                       COMPLETED                   0
    BI                                                                               PERFTABLE1                                                                       COMPLETED           165855232
    (table  PERFTABLE1   have NOT_POPULATED data) .
    cause :IO Requests
    select count(*) from perftable1 a, perftable1 b where a.int32_f1 = b.int32_f1.
    SQL Plan Monitoring Details (Plan Hash Value=1965173750)
    Id
    Operation
    Name
    Estimated
    Rows
    Cost
    Active Period
    (100s)
    Execs
    Rows
    Memory
    Temp
    IO Requests
    CPU Activity
    Wait Activity
    Progress
    SELECT STATEMENT
    1
    . SORT AGGREGATE
    1
    1
    .. PX COORDINATOR
    49
    ... PX SEND QC (RANDOM)
    :TQ10000
    1
    48
    .... SORT AGGREGATE
    1
    48
    ..... PX PARTITION HASH ALL
    202M
    81245
    48
    ->
    ...... HASH JOIN
    202M
    81245
    48
    0
    689.9MB
    1.0GB
    3031 (10%)
    32%
    8.2%
    ->
    ....... TABLE ACCESS INMEMORY FULL
    PERFTABLE1
    200M
    36854
    48
    77M
    29926 (105%)
    67%
    91%
    473s
    ....... TABLE ACCESS INMEMORY FULL
    PERFTABLE1
    200M
    36854

    This is the wrong forum for this question. This forum is for the TimesTen In-Memory Database while your question is about the Oracle Database 12c In-Memory Option. Best post this in the main Oracle Database forum.
    Chris

  • Causes for main memory to be unloaded - BIA Server is overloaded

    The check on our BIA server is showing "BIA Server is overloaded".
    The details indicate that the main memory was unloaded >900 times in the last 24 hours.
    I am not aware of any special activities taking place - what would be the cause of the main memory being unloaded so frequently?
    The indices only take up 25% of main memory, which is well below the 50% threshold recommended by SAP.
    What else might be the cause?
    Thanks

    Hi Experts,
    We are also getting the same Alert / Error in the SAP Net weaver BIA Monitor and we are not able to understand, how to go ahead with the same.
    1. The alert we're getting is "BIA server is overloaded". If we click on details it's showing the alert message as "Number of Times Main Memory Was Unloaded in Last 24 Hours: '1064'".
    2. We even tried doing a BIA Reorg and Restart activity, but in vain.
    Note: I. Before we did the BIA Reorg, the details message was showing as "Number of Times Main Memory Was Unloaded in Last 24 Hours: '2184'".
             II. We did a recent SP 22 upgrade and I'm not sure on where to check for the BIA revision?
    Any suggestions on this would be really helpful?
    Thank You,
    Karthik.Ch

  • Help! Mid files cause "out of memory" session shut down.

    When I export .mid files from Reason 7 and import them into Logic Pro 9, it give me the error message "out of memory" and shuts down the session. Help!!

    I tried a number of values that were multiples of 1024 (2048, etc).
    The only thing that worked seemed to be changing the number and rebooting the server machine.
    Not sure what caused the initial problem though.  Saw very wierd activity in the FMS console.  Had a few hundred users connected, as I typically do for one of my events, and the chat application was repeatedly unloaded from FMS.  When it was reloaded the FMS console would show crazy large numbers in the "Clients" column - numbers like 3954.  Then it would drop to like 340.  Then shoot up again to wildly large numbers.
    Is that the result of a memory problem?

  • Top Link Causes out of memory issue when millions of records need to update

    Hello everyone,
    I am using TopLink 9.0.4 in a batch process. The batch process reads from the temp table(temp table has millions of records one month worth of data which need be updated). The database being used is sqlserver 2005. Below is the snippet of code. It works for 6-7 hours and crashes after that due of out of memory:
    ExpressionBuilder expressionBuilder = new ExpressionBuilder();
    Statement stmt = con.createStatement();
    ResultSet rs = st.executeQuery("Select * from database tablename where field= 'done'");
    while(rs!=null && rs.next()){
    *//where vo is the value object obtained from the rs row by row*     
    if (updateInfo(vo, user,expressionBuilder )){
                   logger.info("updated : "+ rs.getString("col_name"));
                   projCount++;
    rs.close();
    st.close();
    private boolean updateInfo(ProjectVO vo, YNUser tcUser,expressionBuilder ) {
              boolean updated;
              updated = false;
              try {
                   updated = true;
              } catch (Exception e) {
                   logger.warn("update: caused exception, "
                             + e.getMessage());
              return updated;
    Edited by: user8981696 on Jan 14, 2010 1:00 PM

    Thanks for your reply.
    Please find below the answers to you suggestions/concerns:
    You seem to be using raw JDBC to select all of the records in a single result set, not sure if this may be causing a memory issue. You could try paging through the results instead.
    Ans: I have modified the code to get me 1000 records each time and I am getting the ResultSet by using PrepartedStatement instead of regular Statement object.
    What type of caching are you using?
    Ans: No caching is being used. If you have some thoughts on caching please suggest or put some sample code. Again there is no AppServer is being used, its just a regular java process(Batch process) so I dont know how to do caching in a simple java process.
    You may also wish to try the latest 9.0.4 patch release, or try the 10.1.3 version, or the latest EclipseLink 2.0 release.
    Ans: Where can I find the latest patch release 9.0.4?
    Any help/suggestion is really appreciated!

  • XDD causing lot of Memory usage

    Hi,
    We are using Documaker 12.0 Patch 1 and running RP through IDS 2.2 in real-time mode (windows Platform). Each request coming through IDS and while processing gendata it was using huge amount of memory(around 400 MB). When we tried to find the root cause of the problem, it nailed down to XDD as it was huge in size.
    Is there any option in ini or jdt files which can reduc ethe memory usage?
    Thanks In Advance
    Priya.

    Hi,
    I could think of one option here. Since you have mentioned that the XDD is huge, I would recommend you to split the XDD into smaller ones. However you will have to see the feasibility based on your system need.
    a) Define a primary extract dictionary (XDD) at the BDF level with all the common fields across LOBs
    b) Define Extract Dictionary Override field to define a different XDD for each LOBs that has the Field entries for each specific LOB
    Basically, you will have multiple XDDs in your library; one master or primary XDD and smaller LOB specific XDD (based on the Key1, Key2). You may refer to these options in the DM Studio guide for more information. By this way, Documaker wouldn't take memory to load the entire XDD into memory.
    Thanks.

Maybe you are looking for

  • I had to deactivate PhotoShop for service on my computer.  How do I reactivate it?

    I had to deactivate PhotoShop for service on my computer.  How do I reactivate it?

  • How to disable back screen on popup in the format of frame

    I want to hide the back ground contents of the html form when I open a new frame for example if I have 1frame, 2frame, 3frame when I click on some link in 2frame then it opens 3frame but when it opens it I want both 1frame and 2frame to be disabled a

  • The never ending installation loop - Help!

    Dear Apple Forums, I can honestly say I used to hate apple, but since buying one for university use I've come to love my little MacBook Pro. However, it has recently suffered a massive problem and I've run into a very difficult situation. My macbook

  • Oracle On Microsoft Cluster

    Hi all, I am in a testing enviornment.I had Microsoft 2 node cluster set up where the failover is happing. I installed database software on 2 nodes and from one node i configured database where my datafiles are in storage. I copied tnsnames,listener.

  • Sd dvd quality issue

    Hi I am outputing hd footage to sd on dvd. The issue I have is the sd footage is not great quality. I have using dell I7 4 g ram . The footage is from a sony Z5.  I am burning to dual layer dvd. The project is 3.5 hours long. What can I do to increas