[gecode-users] Bugs in Gecode/J

Filip Konvička filip.konvicka at logis.cz
Tue Apr 15 13:11:49 CEST 2008


Malcolm Ryan (15.4.2008 10:37):
> I'm using whatever the standard Java is on Mac OSX 10.5. The version  
> string shows:
> 
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- 
> b05-237)
> Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
> 
> I'm in the process of compiling Gecode on another (linux) machine.  
> I'll run it there and see what happens.
> 
> For very large problems it is crashing with the message:
> 
> java(2404,0xb0801000) malloc: *** mmap(size=65536) failed (error  
> code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> terminate called after throwing an instance of 'Gecode::MemoryExhausted'
>    what():  Memory: Heap memory exhausted
> 
> What determines the maximum heap size available to Gecode?

Hi Malcolm,

at least on Windows you can set maximum Java heap size using the "-Xmx" 
command line option, e.g.

java -Xmx512 ...

sets the limit to 512MB. I think that the default is set pretty low 
sometimes, so you might want to try this.

Hope this helps,
Filip





More information about the gecode-users mailing list