One of the systems that can be used for monitoring trends on a system is munin. It turns out that adding a graph to munin is reasonably simple.
There is a good guide on the munin site.
So - I need a plugin that will return the number of open files.
lsof -u glassfish | wc -l
My glassfish process kept dying with "Too many open files" in the log.
I'm not surprised that it has too many - it has quite a few large applications running - but how to increase this?
ulimit -n shows that the user has a default of 1024.
Instead of using a self-signed certificate with glassfish (see Creating new SSL keys with keytool for glassfish) - we want to use one that is signed by a certificate authority.
Based on http://blogs.sun.com/enterprisetechtips/entry/using_ssl_with_glassfish_v2
I needed to generate a new certificate for glassfish's admin pages.
Instead of using the normal OpenSSL self-signed certificate it was easier just to use the java keystore keytool
keytool -genkey -keyalg RSA -alias
<alias_referred_to_in_glassfish>
-keystore glassfish/domains/domain1/config/keystore.jks
-storepass changeit
Note the -keyalg RSA - keytool by default uses DSA and firefox 3.0 will not accept this even with an added security exception.
I have had jira and confluence running under tomcat 5.5.23 (behind apache over AJP13/mod_jk) for a while now. The aim is to migrate them over to glassfish (behind the same apache but with mod_proxy).
Software versions: