Applet crashing abruptly

I am using applet in my application. Now I am noticing that randomly applet is getting crashed. There is no specific point where it crashes, or specific operation after which it crashed.

After crash it generates an hs_err_pid..log file at the desktop. It mentions the following stuff :

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x80750C5

Function=[Unknown.]

Library=C:\PROGRA~1\Java\J2RE14~1.2_0\bin\client\jvm.dll

NOTE: We are unable to locate the function name symbol for the error

just occurred. Please refer to release documentation for possible

reason and solutions.

...............................

Current Java thread:

at sun.awt.windows.WToolkit.eventLoop(Native Method)

at sun.awt.windows.WToolkit.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Heap at VM Abort:

Heap

def new generation total 896K, used 627K [0x10020000, 0x10110000, 0x10500000)

eden space 832K, 72% used [0x10020000, 0x100b60d8, 0x100f0000)

from space 64K, 41% used [0x100f0000, 0x100f6b80, 0x10100000)

to space 64K, 0% used [0x10100000, 0x10100000, 0x10110000)

tenured generation total 9868K, used 6605K [0x10500000, 0x10ea3000, 0x14020000)

the space 9868K, 66% used [0x10500000, 0x10b734d8, 0x10b73600, 0x10ea3000)

compacting perm gen total 9984K, used 9918K [0x14020000, 0x149e0000, 0x18020000)

the space 9984K, 99% used [0x14020000, 0x149cfb38, 0x149cfc00, 0x149e0000)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Now one common thing I have noticed during all crashes is that perm gen is 99% or 98% at the time of crash (see the last line in above log).

Does that mean the perm gen is less or some other problem is there? And if memory at all is the reason, why am I getting EXCEPTION_ACCESS_VIOLATION and not some error of type OUT_OF_MEMORY_EXCEPTION ?

Thanks for your help.

Message was edited by:

purple_haze

[2553 byte] By [purple_hazea] at [2007-10-2 20:16:21]
# 1

If you are using threads make sure you that none of them are stuck in an infinite loop waiting to access a lock or condition that never gets satisfied, commonly know as deadlock. For the exception access violation you may want to check that your applet applies to the security standars, no file manipulation on the client side etc, if you want check signed applet .

Hope i've been of some assistance!

Andreas.CYa at 2007-7-13 22:58:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
The fact that your perm gen in 98% or 99% full should not be a problem. Theperm gen grows as is needed by the application.The 98% or 99% is relative tothe current size of the perm gen. It has additional room to grow if needed.
jon999a at 2007-7-13 22:58:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...