Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#639 java.lang.OutOfMemoryError: Java heap space

closed
Linux (67)
5
2014-08-14
2008-05-16
Christian
No

I just got the error message "java.lang.OutOfMemoryError: Java heap space" on my Linux.

I have seen that the windows version starts with: -Xmx256M

I suggest to add this parameter also to the linux shell script.
This patch might do the right. ( I do not know if non Sun
accept -Xmx256M as option).
Also it would be nice if freemind.sh becomes "+x" for
the packages.

Best regards,
Christian

--- freemind.sh.before 2008-05-16 13:10:22.000000000 +0200
+++ freemind.sh 2008-05-16 10:40:49.000000000 +0200
@@ -203,9 +203,9 @@
then
_debug "Calling: '${JAVACMD} -Dfreemind.base.dir=${freedir} -cp ${CLASSPATH} freemind.main.FreeMindStarter $@'."
( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start FreeMind
- "${JAVACMD}" -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" freemind.main.FreeMindStarter "$@"
+ "${JAVACMD}" -Xmx256M -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" freemind.main.FreeMindStarter "$@"
else # non-Sun environments don't work currently.
_debug "Calling: '${JAVACMD} -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -Dfreemind.base.dir=${freedir} -cp ${CLASSPATH} freemind.main.FreeMindStarter $@'."
( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start FreeMind
- "${JAVACMD}" -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" freemind.main.FreeMindStarter "$@"
+ "${JAVACMD}" -Xmx256M -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" freemind.main.FreeMindStarter "$@"
fi

Discussion

  • Eric L.
    Eric L.
    2008-05-19

    Logged In: YES
    user_id=318488
    Originator: NO

    I would suggest to do the change before the release as to align all platforms.

    Eric

     
  • Eric L.
    Eric L.
    2008-05-19

    • assigned_to: ewl --> christianfoltin
     
  • Logged In: YES
    user_id=885594
    Originator: NO

    in cvs. Thanks, Chris

     
    • milestone: 648240 --> FreeMind_0.9.0_-_Fixed_in_CVS
    • status: open --> closed