zkn ha scritto:
I run it on RedHat EL3. James is running as root - I don't know if it is
possible to run it as different user and bind it on port 25.
No, with james 2.3 this is not possible.
In trunk we added support for commons-daemon and this is possible (but I
don't know when this will be released)
I'm starting to thing that this has something to do with the files under
/var repository. We have hundreds of thousands emails under /var.
What happened is that I started it to test it with the self created var
repository and while it was running we received lots of emails - 60658
files in address-error, which makes about 30K emails I think. Then I
stopped it and ran it again. This time it started much slower, I even
thought it's not starting again but it started. This is from the
phoenix.log:
I think that James 2.3 keeps *keys* of every message in memory, but 30K
messages should not be enough to fill the memory (it should use 1-2MB in
the heap).
Can you try temporarily moving the "address-error" mails somewhere else
and restart to see in this is the problem or not?
Otherwise try to temporarily increase the java memory using the "-Xmx"
parameter in the startup script.
Stefano
INFO 2007-03-27 03:26:16.747 [Phoenix.] (): Verify that if target is
null then actions is null.
INFO 2007-03-27 03:26:35.538 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are valid.
As you can see it took 20 sec to get through this verification. And
after that this was logged:
INFO 2007-03-27 03:26:35.674 [Phoenix.] (): 15 Blocks to process for
phase "startup". Order of processing = [dnsserver, database-connections,
mailstore, users-store, localusersrepository, spoolrepository, sockets,
thread-manag
er, scheduler, James, mailetpackages, matcherpackages, spoolmanager,
connections, smtpserver].
ERROR 2007-03-27 03:26:51.704 [Phoenix.] (): Component named
"spoolmanager" failed to pass through the Starting stage. (Reason:
java.lang.OutOfMemoryError).
ERROR 2007-03-27 03:26:51.705 [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.OutOf
MemoryError).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "spoolmanager" failed to pass through the Starting
stage. (Reason: java.lang.OutOfMemoryError).
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
INFO 2007-03-27 03:26:51.709 [Phoenix.] (): exception while
starting:Component named "spoolmanager" failed to pass through the
Starting stage. (Reason: java.lang.OutOfMemoryError).
WARN 2007-03-27 03:26:51.713 [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).
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).
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
WARN 2007-03-27 03:26:51.745 [Phoenix.] (): Failed to stop
application james as it is not initialized/started.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]