-
Why is my shibboleth IDP so slow to accept the first connection?
When I create my first connection to my shibboleth IDP it takes 30 / 40 seconds for tomcat to serve the login page.
At first I expected that my tomcat memory allocation / heap space value wasn’t being applied but my ps aux | grep java showed:/usr/lib/jvm/java-6-sun/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Xmx512m -Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap startI could see above it wasn’t using enough memory so I edited /usr/share/tomcat5.5/bin/catalina.sh and under JAVA_OPTS I added: -Xms256m -Xmx1024m -server -XX:+AggressiveOpts -XX:MaxPermSize=512mIt now reads:JAVA_OPTS=”$JAVA_OPTS “-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager” “-Djava.util.logging.config.file=”$CATALINA_BASE/conf/logging.properties -Xms256m -Xmx2048m -server -XX:+AggressiveOpts -XX:MaxPermSize=1024m”I used the ./shutdown.sh script provided with tomcat to shutdown tomcat and then the ./startup.sh script to restart. Tested and performance was massively improved after a 5 minute start up wait.Use tailf /var/log/shibboleth/idp-process.log to watch the log file to check for startup completion.Related Posts
- Etherpad with Shibboleth Authentication (Technical document)
- Success: optimizing the Etherpad Java VM
- Testing Shibboleth SP 2 on CentOS to the ukfederation w/ Godaddy certs
- Shibboleth IDP configuration for multiple organizations & Google apps
- Android – Can’t establish a reliable data connection to the server.
Latest Videos
Sponsors
- Using Scratch at Home February 10, 2012 Mr. Mayoh
- Better Conversations February 10, 2012 Mr. Mayoh
- 1 minute weekly web wonder – Week 19 February 10, 2012 chickensaltash
- Computer Science courses should be left to the experts: teachers February 10, 2012 Terry Freedman
- Being less helpful February 9, 2012 oliverquinlan
- Maths all around you – shining a mathematical spotlight on where you live February 9, 2012 Malcolm Wilson
- Flame Painter and more – IWB interactive art experiences February 9, 2012 Tim




