"Steve Brewin" <[email protected]> ha scritto nel messaggio news:[email protected]... > The logged >>java.lang.OutOfMemoryError: Java heap space<< exception is > saying that there isn't enough heap space allocated. > > While some might question if email is the correct medium to transfer 30MB > of > files, if you want to do so you need to increase your heapsize from the > default.
Well, I can instead use an USB disk and my feet :), mail is an asynchronous method of information exchange I use on my LAN not internet. This is not a duty, it is a convenience for Windows users with zero cygwin sshd knowledge and with netbios disabled, I am the unique user with ssh execution permission (and knowledge), but zero java knowledge and few unix knowledge. > The invocation of the Java which launches James should specify > an -mx???m argument where ??? is the number of megabytes to allocate. > If you are using the standard run.bat/run.sh scripts, then the environment > variable PHOENIX_JVM_OPTS can be used to specify this. > Experimentation is required to find the exact value that suits your needs, > environment and workload. > > Use the SizeIsGreaterThan matcher - > http://james.apache.org/mailet/standard/mailet-report.html#SizeGreaterThan > - > to keep a cap on things. I not found a good method to start James at system start-up. FreeBSD services start-up method use the /etc/rc.d and /usr/local/etc/rc.d directories to run services, but James fail to start. It run by hand if I type in console #/usr/local/etc/rc.d/james start This is a mistery, one year ago I succesfully set-up the system (FreeBSD 7.0) to run James at start-up but I do not remember how and cannot reproduce that situation, also after subsequent intstallation of FreeBSD 7.0 and finally 7.1 I failed to reproduce that functionality. If I remember, the env var JAVA_HOME must be defined, I created a /usr/local/etc/rc.d/java shell executable file with only the env var definition, but no more work. Not a matter I run it by hand till I live. The James port installation create a shell executabe file in the rc.d called 'james', in it there are these lines as a header comment: # # Configuration settings for geronimo%%GERONIMO_VERSION%% in /etc/rc.conf: # # james231_enable (bool): # Set to "NO" by default. # Set it to "YES" to enable james231 # # # james231_home (str) # Set to "/usr/local/james2.3.1" by default. # Set the JAMES_HOME variable for the James process # # james231_base (str) # Set to "/usr/local/james2.3.1" by default. # Set the JAMES_BASE variable for the James process # # james231_tmpdir (str) # Set to "/tmp" by default. # # geronimo%%GERONIMO_VERSION%%_stop_timeout (num) # Set to "10" by default. # Sets the timeout in seconds to allow geronimo to shutdown. # After the timeout has elapsed, geronimo will be killed. # # james231_java_home (str): # james231_java_vendor (str): # james231_java_version (str): # james231_java_os (str): # Specify the requirements of the Java VM to use. See javavm(1). # # james231_classpath (str): # Set to "" by default. # Addtional classes to add to the CLASSPATH # # james231_java_opts (str): # Set to "" by default. # Java VM args to use. # these options may be inserted in /etc/rc.conf, the FreeBSD start-up options file. My settings are: # Apache James server ------------------ james231_enable="YES" james231_java_home="/usr/local/diablo-jdk1.6.0" #james231_classpath="/usr/local/diablo-jdk1.6.0/jre/lib" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" at first sight I added the line james231_java_opts=" -mx64m" to increase java heap size as you suggested, but it do not work The system is a PII (or PIII I do not remember) 460MHz 512MB RAM > Cheers > --Steve many thanks for your help, I work on to try a diffrent solution and come back with a feedback if any or not c ya --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
