Apache2 & Jenkins & SSL

Posted on Sat 15 December 2012 in Linux • Tagged with Apache2, Gentoo, java, notepad, linux • 1 min read

$JAVA_HOME/bin/java -DJENKINS_HOME=/var/lib/jenkins -Xms=512m -Djava.awt.headless=true \
  -server -jar /var/lib/jenkins.war --httpPort=8080 --httpListenAddress=127.0.0.1 \
  --ajp13Port=-1 --logfile=/var/log/jenkins.log

apache vhost config

  ServerAdmin admin@example.com
  DocumentRoot "/srv/www/"
  ServerName jenkins.example.com

  SSLEngine On
  SSLVerifyClient …

Continue reading

"No Java compiler available" on SLES11SP1 and tomcat6

Posted on Wed 27 June 2012 in Linux • Tagged with java, SLES11, SUSE Linux Enterprise Server, tomcat, linux, notepad • 1 min read

On one of my two sle11 machines i had a java exception which i could not explain.

java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org …

Continue reading

JBoss Cluster - ServerPeerID

Posted on Tue 22 February 2011 in Linux • Tagged with JBoss, Server, Work, linux, notepad, java • 1 min read

$SERVER/deploy/messaging/messaging-service.xml

${jboss.messaging.ServerPeerID:0}

For clustered environment each jboss node need a unique ServerPeerID which must be a valid integer.


jstat - jvm memory stats

Posted on Wed 27 October 2010 in Linux • Tagged with java, tools, linux, notepad • 1 min read

/usr/java/jdk1.5.0_22/bin/jstat -gcutil 18703 1s 10

gcutil = Summary of Garbage Collection Statistics (mandatory)
18703 = process id (mandatory)
1s = refresh interval (optional)
10 = counter (optional)

$ /usr/java/jdk1.5.0_22/bin/jstat -gcutil 25532 1s 10
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT …

Continue reading