Re: SIGSEGV (segmentation fault) error occurred during init a JDOM element
Krishnendu Roy Chowdhury <[email protected]> Mon, 25 Feb 2013 19:57:21 -0800 (PST)
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1598132859== Content-Type: multipart/alternative; boundary="2065536479-725192821-1361851041=:73229" --2065536479-725192821-1361851041=:73229 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Rolf, Thank you for your quick update. Initially I also thought that It's related= to perm gen space related error. But in the logs I didn't find =E2=80=9Cja= va.lang.OutOfMemoryError: PermGen space=E2=80=9D error and Problematic fram= e was J (Crash in Compiled Code) in the logs.=C2=A0=20 Is the problem is related to JVM or have memory restrictions to reserve mor= e memory to perm gen? Krish. --- On Tue, 2/26/13, Rolf Lear <[email protected]> wrote: From: Rolf Lear <[email protected]> Subject: Re: [jdom-interest] SIGSEGV (segmentation fault) error occurred du= ring init a JDOM element To: "Krishnendu Roy Chowdhury" <[email protected]> Cc: "JDOM Group" <[email protected]> Date: Tuesday, February 26, 2013, 6:55 AM =0A =0A=0A =0A =0A =0A Hi Krish. =0A =20 =0A This problem is almost certainly not related directly to JDOM.=0A = PermGen space is typically very small, and only used for two=0A c= ommon purposes: =0A =C2=A0- storing class definitions =0A =C2=A0- storing String constants =0A =20 =0A =C2=A0For your interest, the most common causes of PermGen Exhaust= ion=0A that I know of are: =0A =20 =0A - using Tomcat and loading/unloading servlets - each 'classloader'= =0A has it's own space in PermGen, and since each servlet has it's own= =0A classloader the PermGen fills up fast because so many classes are= =0A duplicated in different places in PermGen =0A - Using lots of String.intern() calls - String.intern() uses a=0A = String constant reference from PermGen (or creates one if there=0A = was not one already). If you have many calls to String.intern() it=0A = can fill up PermGen very fast. JDOM does not do String.intern() =0A =20 =0A Rolf =0A =20 =0A On 25/02/2013 1:30 AM, Krishnendu Roy Chowdhury wrote: =0A =0A =0A =0A =0A =0A =0A = HI!=0A =20 =0A =20 =0A I have faced a problem related to segmentation fault= =0A in Linux box. I got following error - =0A =20 =0A =0A <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<= <<<<<<<< =0A J org.jdom.Element.<init>(Ljava/lang/String;)V =0A ... =0A siginfo:si_signo=3DSIGSEGV: si_errno=3D0, si_code=3D= 2=0A (SEGV_ACCERR), si_addr=3D0x00002aab2ac30000=0A = ....................................=0A error=0A = =C2=A0occurred during error reporting (printing native=0A = stack), id 0xb =0A <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<=0A=0A = =20 =0A =20 =0A It is also shows in the log that 100% use of PermGen= =0A space. Why this segmentation fault occurred? Is it= =0A related to JDK or JDOM? =0A =20 =0A In my understanding, problem is related to JDK and= =0A occurred due to 100% use of PermGen space. But I am= =0A not sure as Problematic frame is J.=20 =0A =20 =0A Another interesting point is "error occurred during= =0A error reporting (printing native stack), id 0xb". =0A =20 =0A I am using JDK6up20 and Linux environment. Please=0A= find attached logs for details.=0A =C2=A0= =0A Please=0A help me.=C2=A0=0A = =20 =0A Regards, =0A Krish=0A =0A =0A =0A =20 =0A =0A =20 =0A _______________________________________________=0ATo control your = jdom-interest membership:=0Ahttp://www.jdom.org/mailman/options/jdom-intere= st/[email protected]=0A =0A =20 =0A =0A=0A --2065536479-725192821-1361851041=:73229 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"= top" style=3D"font: inherit;">Hi Rolf,<br><br>Thank you for your quick upda= te. Initially I also thought that It's related to perm gen space related er= ror. But in the logs I didn't find =E2=80=9Cjava.lang.OutOfMemoryError: Per= mGen space=E2=80=9D error and Problematic frame was J (Crash in Compiled Co= de) in the logs. <br><br>Is the problem is related to JVM or have mem= ory restrictions to reserve more memory to perm gen?<br><br>Krish.<br><br>-= -- On <b>Tue, 2/26/13, Rolf Lear <i><[email protected]></i></b> wrote:<br= ><blockquote style=3D"border-left: 2px solid rgb(16, 16, 255); margin-left:= 5px; padding-left: 5px;"><br>From: Rolf Lear <[email protected]><br>Subj= ect: Re: [jdom-interest] SIGSEGV (segmentation fault) error occurred during= init a JDOM element<br>To: "Krishnendu Roy Chowdhury" <[email protected]= om><br>Cc: "JDOM Group" <[email protected]><br>Date: Tuesday,= February 26, 2013, 6:55 AM<br><br><div id=3D"yiv2133164743">=0A =0A=0A =0A =0A <d= iv>=0A <div class=3D"yiv2133164743moz-cite-prefix">Hi Krish.<br>=0A = <br>=0A This problem is almost certainly not related directly to JDOM= .=0A PermGen space is typically very small, and only used for two=0A = common purposes:<br>=0A - storing class definitions<br>=0A = - storing String constants<br>=0A <br>=0A For you= r interest, the most common causes of PermGen Exhaustion=0A that I kno= w of are:<br>=0A <br>=0A - using Tomcat and loading/unloading ser= vlets - each 'classloader'=0A has it's own space in PermGen, and since= each servlet has it's own=0A classloader the PermGen fills up fast be= cause so many classes are=0A duplicated in different places in PermGen= <br>=0A - Using lots of String.intern() calls - String.intern() uses a= =0A String constant reference from PermGen (or creates one if there=0A= was not one already). If you have many calls to String.intern() it=0A= can fill up PermGen very fast. JDOM does not do String.intern()<br>= =0A <br>=0A Rolf<br>=0A <br>=0A On 25/02/2013 1:30 AM, = Krishnendu Roy Chowdhury wrote:<br>=0A </div>=0A <blockquote type=3D"= cite">=0A <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0">=0A = <tbody>=0A <tr>=0A <td style=3D"font:inherit;" v= align=3D"top">=0A <p class=3D"yiv2133164743MsoNormal"><font fa= ce=3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12pt;">HI!=0A = <br>=0A <br>=0A I ha= ve faced a problem related to segmentation fault=0A in L= inux box. I got following error -<br>=0A <br>=0A = </span></font></p>=0A <p class=3D"yiv2133164743MsoNo= rmal"><font face=3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12= pt;"><<<<<<<<<<<<<<<<<&l= t;<<<<<<<<<<<<<<<<<<&= lt;<<<<<<<<<br>=0A J org.jdom.El= ement.<init>(Ljava/lang/String;)V<br>=0A ...<br>= =0A siginfo:si_signo=3DSIGSEGV: si_errno=3D0, si_code=3D= 2=0A (SEGV_ACCERR), si_addr=3D0x00002aab2ac30000</span><= /font></p>=0A <p class=3D"yiv2133164743MsoNormal"><font face= =3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12pt;">...........= .........................</span></font></p>=0A <p class=3D"yiv= 2133164743MsoNormal"><font face=3D"Times New Roman" size=3D"3"><span style= =3D"FONT-SIZE:12pt;">error=0A occurred during erro= r reporting (printing native=0A stack), id 0xb<br>=0A = <<<<<<<<<<<<<<&l= t;<<<<<<<<<<<<<<<<<<&= lt;=0A=0A <br>=0A <br>=0A = It is also shows in the log that 100% use of PermGen=0A = space. Why this segmentation fault occurred? Is it=0A = related to JDK or JDOM?<br>=0A <br>=0A = In my understanding, problem is related to JDK and=0A = occurred due to 100% use of PermGen space. But I am=0A = not sure as Problematic frame is J. <br>=0A <br>=0A= Another interesting point is "error occurred during=0A = error reporting (printing native stack), id 0xb".<br>=0A= <br>=0A I am using JDK6up20 and Linu= x environment. Please=0A find attached logs for details.= </span></font></p>=0A <p class=3D"yiv2133164743MsoNormal"><fon= t face=3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12pt;"> = ;</span></font></p>=0A <p class=3D"yiv2133164743MsoNormal"><fo= nt face=3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12pt;">Plea= se=0A help me. </span></font></p>=0A <= font face=3D"Times New Roman" size=3D"3"><span style=3D"FONT-SIZE:12pt;"><b= r>=0A Regards,<br>=0A Krish</span></font>= </td>=0A </tr>=0A </tbody>=0A </table>=0A <br>=0A= <fieldset class=3D"yiv2133164743mimeAttachmentHeader"></fieldset>=0A = <br>=0A <pre>_______________________________________________=0ATo= control your jdom-interest membership:=0A<a rel=3D"nofollow" class=3D"yiv2= 133164743moz-txt-link-freetext" target=3D"_blank" href=3D"http://www.jdom.o= rg/mailman/options/jdom-interest/[email protected]">http://www.jdom.org= /mailman/options/jdom-interest/[email protected]</a></pre>=0A </bloc= kquote>=0A <br>=0A </div>=0A=0A</div></blockquote></td></tr></table> --2065536479-725192821-1361851041=:73229-- --===============1598132859== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected] --===============1598132859==--