Hi Greg
Thanks for your input.
This should be taken care of by the magnolia_control script.
Originally I did increase the memory there, but without noticable
effect.
I gave up to 1024M. But checking the activity on my Mac, I noticed
that the Java apps where not consuming more than about 140M.
So it was puzzeling me a little, why I still got "Java heap space"
messages.
If not using this script, one should do it in tomcat's setenv.sh
script (create it if it's not there yet).
Doing it in catalina.sh should be avoided, because this script is
also invoked by the shutdown script, and the shutdown call really
does not need a whole lot of memory.
Yes, there's no setenv.sh in the provided tomcat bundle yet.
Also, I'm concerned that the 512M assigned by the magnolia_control
would not be enough, Stefan.
Were you using a plain Magnolia CE bundle ? Can you elaborate on
your setup?
Yes, I am using version magnolia-tomcat-bundle-3.5.4-bundle-jdk14 out
of the box.
Could you also elaborate on how you modified the
magnolia_control.sh script
I changed this the following lines:
magnolia_control.bat
set CATALINA_OPTS=%CATALINA_OPTS% -Xms1024M -Xmx1024M -
magnolia_control.sh
export CATALINA_OPTS="$CATALINA_OPTS -Xms1024M -Xmx1024M -
... and how you started Tomcat ?
I started Tomcat via the Terminal:
cd /Library/Tomcat/bin
./startup.sh
As there are no guidlines on how to install a Magnolia-ready
environment on a Mac for testing,
I followed this guide:
http://wiki.apache.org/tomcat/TomcatOnMacOS
But as it says there, without defining JAVA_HOME
The Java memory settings on my Mac are "as much as possible" (standard).
Best regards and thank you!
Stefan
-greg
On Mar 19, 2008, at 09:23 , Olivier Marti wrote:
Hi Stefan
You should edit catalina.sh in your tomcat's bin folder, to add
the following line:
JAVA_OPTS="-Xms64M -Xmx1024M" (depending on the amount of RAM you
want to assign)
With this setting it should run fine.
Cheers,
Olivier
On 19.03.2008, at 09:19, ACUITY | Stefan Yanku wrote:
Dear Subscribers
I've downloaded magnolia-3.5.4 with apache-tomcat-5.5.25 and am
trying to install it locally on my Mac osx 10.4.11 machine.
Tomcat is running and I get to see the "Welcome to Magnolia" page,
but while installing, I get a "Java heap space"
I set "magnolia_control.sh" and "magnolia_control.sh" up to 1024M
but sill get errors.
Sometimes at the very beginning of the install proccess,
sometimes right before completition.
Attached the last part of the catalina.out file for further info.
The situation is, that I already hat a heap space, rebooted and
tried to install the two remaining apps.
After the Message: "19 tasks have been executed, for a total of
19 tasks."
I get the "Java heap space" again.
If someone experienced something simmilar, looking forward to
some suggestions.
And, an other question:
is Xmx512M using RAM or Harddisk space?
Thank you guys a lot for your time!
best regards
Stefan
********************************************************************
*************************************
*
*
* Magnolia needs module updates or installs, point your browser
to your Magnolia instance and confirm ! *
*
*
********************************************************************
*************************************
INFO info.magnolia.cms.beans.config.ConfigLoader
ConfigLoader.java(load:156) 19.03.2008 09:09:59 Init i18n
INFO info.magnolia.cms.i18n.AbstractMessagesImpl
MessagesManager.java(load:190) 19.03.2008 09:09:59 Config :
loading i18n configuration - /server/i18n/system
WARN info.magnolia.cms.i18n.AbstractMessagesImpl
MessagesManager.java(load:195) 19.03.2008 09:09:59 /server/i18n/
system does not exist yet; skipping.
INFO info.magnolia.cms.i18n.AbstractMessagesImpl
MessagesManager.java(registerEventListener:233) 19.03.2008
09:09:59 Registering event listener for i18n
INFO info.magnolia.cms.beans.config.MIMEMapping MIMEMapping.java
(load:104) 19.03.2008 09:09:59 Config : loading MIMEMapping
WARN info.magnolia.cms.beans.config.MIMEMapping MIMEMapping.java
(load:111) 19.03.2008 09:09:59 Config : no MIMEMapping info
configured at /server/MIMEMapping
INFO info.magnolia.cms.beans.config.MIMEMapping MIMEMapping.java
(registerEventListener:127) 19.03.2008 09:09:59 Registering
event listener for MIMEMapping
INFO info.magnolia.cms.beans.config.ConfigLoader
ConfigLoader.java(load:164) 19.03.2008 09:09:59 Configuration
loaded (took 2 seconds)
INFO info.magnolia.cms.filters.MgnlMainFilter
MgnlMainFilter.java(initRootFilter:181) 19.03.2008 09:09:59
Initializing filters
INFO info.magnolia.cms.filters.CompositeFilter
CompositeFilter.java(initFilters:87) 19.03.2008 09:09:59
Initializing filter [null]
INFO info.magnolia.cms.filters.CompositeFilter
CompositeFilter.java(initFilters:87) 19.03.2008 09:09:59
Initializing filter [null]
19.03.2008 09:09:59 org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
19.03.2008 09:09:59 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
19.03.2008 09:09:59 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/23 config=null
19.03.2008 09:09:59 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19.03.2008 09:09:59 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9850 ms
INFO info.magnolia.cms.beans.config.ContentRepository
ContentRepository.java(loadWorkspace:367) 19.03.2008 09:10:04
System : loading workspace dms
ERROR info.magnolia.module.ui.ModuleManagerWebUI
ModuleManagerWebUI.java(run:124) 19.03.2008 09:11:05 Could not
perform installation: Java heap space
java.lang.OutOfMemoryError: Java heap space
ERROR info.magnolia.module.InstallContextImpl
InstallContextImpl.java(error:82) 19.03.2008 09:11:05 > Could
not perform installation: Java heap space
java.lang.OutOfMemoryError: Java heap space
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
Best regards,
Olivier Marti
-------------------------------------------------
Phone: +41 (0)61 228 90 04
Magnolia International Ltd.
http://www.magnolia.info
Magnolia® - Simple Enterprise Content Management
-------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------