IO package: Difference between revisions

2 bytes removed ,  5 December 2011
using <pre> blocks for code blocks in lists
(added octaveforge category)
(using <pre> blocks for code blocks in lists)
Line 153: Line 153:
# Check Java memory settings. Try javamem
# Check Java memory settings. Try javamem
## If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better)
## If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better)
## If it doesn't work, do:<br><code>
## If it doesn't work, do:
##:<pre>
##:rt = java_invoke ('java.lang.Runtime', 'getRuntime')
##:rt = java_invoke ('java.lang.Runtime', 'getRuntime')
##:rt.gc
##:rt.gc
##:rt.maxMemory ().doubleValue () / 1024 / 1024 # show MaxMemory in MiB.</code>
##:rt.maxMemory ().doubleValue () / 1024 / 1024 # show MaxMemory in MiB.</pre>
## In case you have insufficient memory, see in [[#Gotchas]], [[#Java memory pool allocation size]], how to increase java's memory pre-reservation.
## In case you have insufficient memory, see in [[#Gotchas]], [[#Java memory pool allocation size]], how to increase java's memory pre-reservation.
# Check if all classes (.jarfiles) are in class path. Do a 'jcp = javaclasspath (-all)'  (under unix/linux, do 'jcp = javaclasspath; strsplit (jcp,”:”)' (w/o quotes). See above under [[#Required support software]] what classes should be mentioned.
# Check if all classes (.jarfiles) are in class path. Do a 'jcp = javaclasspath (-all)'  (under unix/linux, do 'jcp = javaclasspath; strsplit (jcp,”:”)' (w/o quotes). See above under [[#Required support software]] what classes should be mentioned.