Hello Flavio,
The page loading time is ok. The real problem is slow tomcat initialization (15 minutes)
through the rc file generated by "update-rc.d".
It's a long time to wait for, so I have to kill the java process and start tomcat6
manually (/etc/init.d/tomcat6 start) after a server restart.
Any other suggestion?
Thanks!
flavio <flavio(a)asteriskguide.com> escreveu:
Hi Robson,
This text was found in the Grails webpage. I think it is worth a try.
"Grails can seem very slow in development mode, with pages taking more than a
second to load. If this applies to you, then try increasing the maximum heap size by
setting the JAVA_OPTS environment variable to something like this: '-Xmx512m' -
this will set the maximum heap size to 512Mb when running Grails and should result in a
noticeable improvement in response times".
http://grails.codehaus.org/Quick+Start
I hope it helps
Flavio E. Goncalves
----- Original Message -----
From: Robson Souza
To: users(a)lists.openser.org
Sent: Friday, May 23, 2008 5:21 PM
Subject: [OpenSER-Users] sermyadmin: problems with tomcat6 automaticinitialization
Hello,
I got a openser 1.3.2 working with sermyadmin 0.5 installed in a Debian 4.0 OS.
After some tests, everything is working fine except for one problem. By the time I start
or restart the server, the tomcat spends approximately 15 min to start as follows
(catalina.out file):
May 23, 2008 4:10:47 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/../lib/i386
May 23, 2008 4:10:48 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 23, 2008 4:10:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3111 ms
May 23, 2008 4:10:48 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 23, 2008 4:10:48 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
May 23, 2008 4:10:48 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive serMyAdmin.war
May 23, 2008 4:10:54 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.springframework.web.util.Log4jConfigListener" is
already configured for this context. The duplicate definition has been ignored.
May 23, 2008 4:10:54 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener
"org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener" is already
configured for this context. The duplicate definition has been ignored.
[0] spring.GrailsWebApplicationContext Refreshing
org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1d6c336: display
name [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1d6c336];
startup date [Fri May 23 16:26:43 BRT 2008]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@e61a35
[0] spring.GrailsWebApplicationContext Bean factory for application context
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1d6c336]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@baa573
May 23, 2008 4:26:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for this
context. The duplicate definition has been ignored.
May 23, 2008 4:26:49 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for this
context. The duplicate definition has been ignored.
May 23, 2008 4:26:49 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 23, 2008 4:26:49 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 23, 2008 4:26:49 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40 config=null
May 23, 2008 4:26:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 960673 ms
In order to start faster (10 sec) after the server restart, I have to kill the java
process (in CPU 99%) and start tomcat manually by performing "/etc/init.d/tomcat6
start".
I'm using the tomcat6 init file provided in
www.sermyadmin.org such as its
instructions.
How can I solve that?
Robson
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
---------------------------------
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!