Issue Details (XML | Word | Printable)

Key: RVM-151
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Peter Donald
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RVM

OutOfMemory exceptions should indicate which space was exhausted

Created: 20/Jul/07 08:06 PM   Updated: 14/Oct/08 07:55 AM
Component/s: MMTk, Runtime
Affects Version/s: 2.9.2, 2.9.3, 3.0, 3.0.1
Fix Version/s: 3.0.2

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
Indicating the space that causes the OOM would make debugging much easier and would match what the Sun JVM does.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Daniel Frampton added a comment - 20/Jul/07 08:20 PM
This should be pretty easy. There are two basic options for how to do this.

1. The reason for the OOME: "<space> is full", or "Page budget exhausted".
2. The allocator that is being used: "Failed allocation to <space>, etc".

And then of course we could combine the two


Ian Rogers added a comment - 03/Sep/08 09:09 AM
From mailing list and private discussions, I believe there is a common problem with how the spaces are defined.

1) a user runs a benchmark and gets an OOME
2) the user re-runs the benchmark with -Xms and -Xmx but they still get an OOME
3) they have no idea which space is exhausted so start changing parameters to see if they can increase the size of spaces to avoid the OOME

I believe this change is important but we also need at least to document how the size of a space can be increased to avoid the OOME.


Steve Blackburn added a comment - 03/Sep/08 05:06 PM
I can have a look at it, but I don't think it makes a whole lot of sense since with discontiguous spaces (which we've had for a year or so now), spaces no longer run out of virtual memory. (Although it DID make sense back when Peter made the request since back then spaces could and did get exhausted, and likewise, I think the Sun VM has fixed sized spaces).

So to know what space a failing allocation is going to may be of incidental interest but in general doesn't tell us much about why we got the OOME now that we're using discontiguous spaces.

Do my comments make sense, Ian?

I'm happy to have a look at improving the output in any case, so no need to close this tracker, but I just wanted to point out that it is no longer the case this will provide what Peter was originally asking for because the system no longer works that way.


Steve Blackburn added a comment - 08/Sep/08 01:59 AM
OK. As noted in 619, there are still some spaces (such as the PLOS) which use contiguous spaces (i'd forgotten about the PLOS when writing the above). For these spaces, the problem remains a real one. I'll try to address this.