2009/9/24 lim_113 <[email protected]>: > > I use james-2.3.2 but i have about 177000 messages (354000files) in > /var/mail/outgoing/ ...
The spool keeps message keys in memory. Try to add an -Xmx512M parameter or something similar to increase the max memory you give to james. Stefano > Stefano Bagnara-2 wrote: >> >> What is your james version? >> >> How many files do you have in the /var ? >> If I remember correctly we fixed this bug for 2.3.1: please note that >> you need to update both james.sar and the phoenix jars because IIRC >> the bug was in phoenix container. >> >> Stefano >> >> 2009/9/24 lim_113 <[email protected]>: >>> >>> I have a lot of email waiting to be send in /var/outgoing/ and when a try >>> to >>> start james i habe that error... >>> >>> James was running i just restart it and then i have this error : >>> >>> ERROR 2009-09-24 01:57:09.184 [Phoenix.] (): Component named >>> "spoolmanager" failed to pass through the Starting stage. (Reason: >>> java.lang.OutOfMemoryError: Java heap space). >>> ERROR 2009-09-24 01:57:09.185 [Phoenix.] (): There was an error running >>> phase "startup" for Block named "spoolmanager". (Reason: Component named >>> "spoolmanager" failed to pass through the Starting stage. (Reason: >>> java.lang.OutOfMemoryError: Java heap space).). >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: >>> Component named "spoolmanager" failed to pass through the Starting stage. >>> (Reason: java.lang.OutOfMemoryError: Java heap space). >>> at >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354) >>> at >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180) >>> at >>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260) >>> rethrown from >>> java.lang.OutOfMemoryError: Java heap space >>> at >>> java.lang.StringCoding$StringDecoder.decode(StringCoding.java:133) >>> at java.lang.StringCoding.decode(StringCoding.java:173) >>> at java.lang.String.<init>(String.java:444) >>> at java.lang.String.<init>(String.java:516) >>> at java.io.UnixFileSystem.list(Native Method) >>> at java.io.File.list(File.java:973) >>> at java.io.File.list(File.java:1004) >>> INFO 2009-09-24 01:57:09.210 [Phoenix.] (): exception while >>> starting:Component named "spoolmanager" failed to pass through the >>> Starting >>> stage. (Reason: java.lang.OutOfMemoryError: Java heap space). >>> >>> WARN 2009-09-24 01:57:09.223 [Phoenix.] (): Failed to start >>> application >>> james. >>> org.apache.avalon.framework.CascadingException: Failed to start >>> application >>> james. >>> at >>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313) >>> at >>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376) >>> at >>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509) >>> rethrown from >>> org.apache.avalon.phoenix.interfaces.ApplicationException: Component >>> named >>> "spoolmanager" failed to pass through the Starting stage. (Reason: >>> java.lang.OutOfMemoryError: Java heap space). >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186) >>> at >>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260) >>> at >>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295) >>> at >>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376) >>> at >>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542) >>> at >>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535) >>> rethrown from >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: >>> Component named "spoolmanager" failed to pass through the Starting stage. >>> (Reason: java.lang.OutOfMemoryError: Java heap space). >>> at >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354) >>> at >>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409) >>> at >>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180) >>> at >>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260) >>> rethrown from >>> java.lang.OutOfMemoryError: Java heap space >>> at >>> java.lang.StringCoding$StringDecoder.decode(StringCoding.java:133) >>> at java.lang.StringCoding.decode(StringCoding.java:173) >>> at java.lang.String.<init>(String.java:444) >>> at java.lang.String.<init>(String.java:516) >>> at java.io.UnixFileSystem.list(Native Method) >>> at java.io.File.list(File.java:973) >>> at java.io.File.list(File.java:1004) >>> WARN 2009-09-24 01:57:09.268 [Phoenix.] (): Failed to stop application >>> james as it is not initialized/started. >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/-Phoenix.--%28%29%3A-Component-named-%22spoolmanager%22-failed-to-pass-through-the-Starting-stage.-%28Reason%3A-java.lang.OutOfMemoryError%3A-Java-heap-space%29.-tp25531338p25531338.html >>> Sent from the James - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- > View this message in context: > http://www.nabble.com/-Phoenix.--%28%29%3A-Component-named-%22spoolmanager%22-failed-to-pass-through-the-Starting-stage.-%28Reason%3A-java.lang.OutOfMemoryError%3A-Java-heap-space%29.-tp25531338p25589530.html > Sent from the James - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
