• Post Reply Bookmark Topic Watch Topic
  • New Topic

'Out of swap space?' error  RSS feed

 
Bob Baron
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting the following error:

Exception java.lang.OutOfMemoryError: requested 16384000 bytes for GrET* in D:/BUILD_AREA2/jdk1.4.2/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?

The last few lines of a GC log look like:

310699.430: [ParNew 607490K->545850K(989600K), 0.0159794 secs]
310717.674: [ParNew 607542K->545964K(989600K), 0.0164997 secs]
310750.552: [Full GC 569453K->547638K(989600K), 6.9573254 secs]

The environment is JRE 1.4.2 running on WIndows 2000 and I'm also using -Xmx1570M.

It seems pretty clear that there is an array that is being resized, but why can't it allocate more memory from the existing heap or the OS?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob,

Well, it sounds from the message as though the heap couldn't grow as large as HotSpot thought it would be allowed to. The obvious question is "Is there enough room for the PageFiles on your disk?"
 
Bob Baron
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, plenty of room.

This generally occurs after the app has been running for a couple of days and the events leading up to it do not seems to follow an obvious pattern. I was reading on the Sun bug DB about some hard to reproduce errors iduring GC that occur when more space is needed when an array needs to grow. IS anybody familiar with similar problems?
 
al greezlee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are having the same error with HP-UX 11.11 and Java 1.4.2.06

There are other references:

HP / Java 1.4.2.03 .... http://h21007.www2.hp.com/cmdspp/QuestionAnswer/1,1764,94B0FE9F-CA3B-456A-8EC1-025FF467A0F5,00.html

and Sun Java 1.4.2_01

http://dodo.freenetproject.org/pipermail/devl/2003-September/000209.html

No solution as yet, but as has probably been mentioned, JVMs can sometimes crash horribly rather than resize or give a nice error when some allocated space is overloaded e.g. permanent space (crashed with SEGV on JDK 1.3.1 pre _08), thread stack space (error says can't create new native thread - issue is heap is encroaching on available space for thread stacks)

I'm going to try an earlier patch of 1.4.2 and the Sun Bugs DB - I'll add a post when we fix it.

Alan
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!