HeapDumpOnOutOfMemoryError - Posting my Heap Dump as guided in Jenkis wiki

41 views
Skip to first unread message

ajita

unread,
Jun 15, 2011, 8:01:34 PM6/15/11
to Jenkins Users, andre...@disney.com
Hi,

In reference to the issue "I'm getting OutOfMemoryError"
https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError
I have obtained heapdump

Please Click the link to get my heapDump file
http://www.yourfilelink.com/get.php?fid=697155&dv=1

My tests have 0 failures, but build is failing due to Out of memory.
Getting following Fatal error:

FATAL: Failed to parse arguments: arg0=/Users/admin/.rvm/rubies/
ruby-1.9.2-p180/bin/ruby, arguments=[Rack: /Users/admin/workspace/
my_project_name], nargs=3
java.lang.IllegalStateException: Failed to parse arguments: arg0=/
Users/admin/.rvm/rubies/ruby-1.9.2-p180/bin/ruby, arguments=[Rack: /
Users/admin/workspace/my_project_name], nargs=3
at hudson.util.ProcessTree$Darwin
$DarwinProcess.parse(ProcessTree.java:1063)
at hudson.util.ProcessTree$Darwin
$DarwinProcess.getEnvironmentVariables(ProcessTree.java:948)
at hudson.util.ProcessTree
$OSProcess.hasMatchingEnvVars(ProcessTree.java:266)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:482)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:721)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
452)
at hudson.model.Run.run(Run.java:1375)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.lang.IndexOutOfBoundsException: Bounds exceeds
available space : size=262144, offset=262145
at com.sun.jna.Memory.boundsCheck(Memory.java:168)
at com.sun.jna.Memory.getByte(Memory.java:394)
at hudson.util.ProcessTree$Darwin$DarwinProcess
$1StringArrayMemory.skip0(ProcessTree.java:1005)
at hudson.util.ProcessTree$Darwin
$DarwinProcess.parse(ProcessTree.java:1059)
... 9 more

Vojtech Juranek

unread,
Jun 16, 2011, 2:57:13 AM6/16/11
to jenkins...@googlegroups.com
Hi,
what is you memory setup (i.e. params like -Xmx -Xms -XX:PermSize -
XX:MaxPermSize) or could you post here result of
jstat -gc $JENKINS_PID ?
Btw: link you provided is not valid (at least I'm gettin "Incorrect linking
code.")
Vojtech

ajita

unread,
Jun 16, 2011, 6:39:01 PM6/16/11
to Jenkins Users
Hi,

Thanks for replying.
Here is the jstat :

S0C S1C S0U S1U EC EU OC OU
PC PU YGC YGCT FGC FGCT GCT
2112.0 2112.0 0.0 1477.3 17024.0 1043.2 107776.0 15538.0
83968.0 39678.7 2389 57.993 126 22.365 80.358

and hopefully this link works.

http://uploading.com/files/d1a7m895/heapdump-1308250463997.hprof/

Thanks

Vojtech Juranek

unread,
Jun 17, 2011, 4:24:14 AM6/17/11
to jenkins...@googlegroups.com
Hi,
this links work. However, I don't see anything special in this heap dump
(except a lot of instances of net.netbeans.lib.profiler... - I guess you run
some profiling?, but it shouldn't be problem). The dump has only a few doznes
MB, is this really dump taken during the crash? It seems to me more like dump
or freshly running instance.

Looking into your memory, you have quite low limits on eden and old space (17
and ~ 100MB). Maybe setting Xmx (e.g. to -Xmx1024m), could solve the problem

Vojtech

ajita

unread,
Jun 20, 2011, 5:20:38 PM6/20/11
to Jenkins Users
Thanks alot. Its working now.

On Jun 17, 1:24 am, Vojtech Juranek <vjura...@redhat.com> wrote:
> Hi,
> this links work. However, I don't see anything special in this heap dump
> (except a lot of instances of net.netbeans.lib.profiler... - I guess you run
> some profiling?, but it shouldn't be problem).  The dump has only a few doznes
> MB, is this really dump taken during the crash? It seems to me more like dump
> or freshly running instance.
>
> Looking into yourmemory, you have quite low limits on eden and old space (17
> and ~ 100MB). Maybe setting Xmx (e.g. to -Xmx1024m), could solve the problem
>
> Vojtech
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for replying.
> > Here is the jstat :
>
> > S0C    S1C    S0U    S1U      EC       EU        OC         OU
> > PC     PU    YGC     YGCT    FGC    FGCT     GCT
> > 2112.0 2112.0  0.0   1477.3 17024.0   1043.2   107776.0   15538.0
> > 83968.0 39678.7   2389   57.993  126    22.365   80.358
>
> > and hopefully this link works.
>
> >http://uploading.com/files/d1a7m895/heapdump-1308250463997.hprof/
>
> > Thanks
>
> > On Jun 15, 11:57 pm, Vojtech Juranek <vjura...@redhat.com> wrote:
> > > Hi,
> > > what is youmemorysetup (i.e. params like -Xmx -Xms -XX:PermSize -

ajita

unread,
Jun 20, 2011, 5:21:03 PM6/20/11
to Jenkins Users
Thanks alot. Its working now.

On Jun 17, 1:24 am, Vojtech Juranek <vjura...@redhat.com> wrote:
> Hi,
> this links work. However, I don't see anything special in this heap dump
> (except a lot of instances of net.netbeans.lib.profiler... - I guess you run
> some profiling?, but it shouldn't be problem).  The dump has only a few doznes
> MB, is this really dump taken during the crash? It seems to me more like dump
> or freshly running instance.
>
> Looking into yourmemory, you have quite low limits on eden and old space (17
> and ~ 100MB). Maybe setting Xmx (e.g. to -Xmx1024m), could solve the problem
>
> Vojtech
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for replying.
> > Here is the jstat :
>
> > S0C    S1C    S0U    S1U      EC       EU        OC         OU
> > PC     PU    YGC     YGCT    FGC    FGCT     GCT
> > 2112.0 2112.0  0.0   1477.3 17024.0   1043.2   107776.0   15538.0
> > 83968.0 39678.7   2389   57.993  126    22.365   80.358
>
> > and hopefully this link works.
>
> >http://uploading.com/files/d1a7m895/heapdump-1308250463997.hprof/
>
> > Thanks
>
> > On Jun 15, 11:57 pm, Vojtech Juranek <vjura...@redhat.com> wrote:
> > > Hi,
> > > what is youmemorysetup (i.e. params like -Xmx -Xms -XX:PermSize -
Reply all
Reply to author
Forward
0 new messages