United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8000662 : NPG: nashorn ant clean test262 out-of-memory with Java heap

Details
Type:
Bug
Submit Date:
2012-10-09
Status:
Closed
Updated Date:
2014-01-14
Project Name:
JDK
Resolved Date:
2012-11-30
Component:
hotspot
OS:
Sub-Component:
gc
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
Fixed Versions:
hs25 (b11)

Related Reports
Backport:
Blocks:

Sub Tasks

Description
The nashorn test

ant clean test262

fails with out-of-memory exception for the Java heap
                                    

Comments
FYI - this sort of blocks Nashorn.  We have to remain on b57 (pre permgen removal) until this is fixed, and it also causes us development problems as then we can no longer test the bleeding edge invokedynamic performance fixes that the codegen team continuously check in. 
                                     
2012-10-22
Issue looks like it may be related to not cleaning up anonymous classes and classloaders.
                                     
2012-10-22
I agree.

To repro:

1) clone a nashorn depot (ask Jim Laskey for access to Kenai project for Nashorn)
hg clone https://hg.kenai.com/hg/nashorn~source [nashorn-dir] 

2) Clone the ecma test suite: hg clone Http://hg.Ecmascript.org/tests/test262 [test262-dir-on-your-hd]

3) ln -s [test262-dir-on-your-hd] [nashorn-dir]/nashorn/test/test262

4) cd [nashorn-dir]/nashorn

5) ant test262parallel

Boom (after about 200 tests). Hprof is full of method handles
Using b57 runs 11500 tests just fine.

                                     
2012-10-22
I've asked Marcus for the test case, instructions on how to run it, details of the machine (or machines) on which the OOME is seen, and some GC logs. A likely workaround is increasing the heap size temporarily - until the anonymous classloader issue is resolved.
                                     
2012-10-22
We will try increased heap sizes, but note that this breaks after ~200 tests. Not sure if there is enough heap size in the world to handle 11500 tests... 
                                     
2012-10-22
I will try to get logs and hprofs on an ftp for you tomorrow
                                     
2012-10-22
We don't understand how to fix this problem yet.  We trying to get help from the 292 implementors to on fixing it.

                                     
2012-10-22
This should be a P2 and I believe Coleen is currently working on this.
                                     
2012-11-01
We crash because of the 8003720 bug when we run the test262 test suite. We need to fix that before we push a fix for this bug.
                                     
2012-11-22
URL:   http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/90273fc0a981
User:  coleenp
Date:  2012-11-30 00:39:41 +0000

                                     
2012-11-30
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/90273fc0a981
User:  amurillo
Date:  2012-12-01 02:59:09 +0000

                                     
2012-12-01



Hardware and Software, Engineered to Work Together