What do I do if I get an out of heap Memory Error: Can I control the amount of heap memory used by the TransXChange Publisher?
The publisher is a portable application that runs on the Java Virtual Machine (VM). A Java VM can be configured to run in a certain amount of heap memory. If this is exceeded an “out of memory” error will occur. By default the Java VM heap memory limit is set to a sensible default appropriate for most timetables. However, for large TransXChange documents you may need to increase this allocation. You can do this simply by editing the setting in the publish.bat file (for the command line version), or the TransXChangePublisher.l4j.ini file (for the GUI version). These files can be found in the base directory where you unpacked the publisher distribution. In both files you need to change the setting that begins -Xmx. For example, to change the heap from 128MB to 1024MB, edit the relevant file and change -Xmx128m to -Xmx1024m.
Related Questions
- What do I do if I get an out of heap Memory Error: Can I control the amount of heap memory used by the TransXChange Publisher?
- I am getting the error "java.lang.OutofMemoryError Java heap space", Is there a way I can increase the memory for the program?
- Can I control how much graphics memory is used by a single application?