title: Very slow java application start up
body: <p>I have a very strange problem. My java application is starting up very slow. Here is a snippet of code: </p>
  
  <pre><code>public static void main(String[] args) {
  
      System.out.println("Is this going to be printed really fast?");
  
      if (args.length == 0) {
  //other code below
  </code></pre>
  
  <p>The thing is even the println statement isn't print it instantly. I tried remote profilling - to no avail the JVM apparently doesn't bootstrap fast enough. I tried setting a breakpoint on the println and then remotely connecting with a debugger - the breakpoint is not hit for some minutes. My JVM version: </p>
  
  <pre><code>java -Xmx120m -version
  java version "1.6.0_14"
  Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
  Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
  </code></pre>
  
  <p>My os is: Linux 2.6.27.45-lustre-1.8.3.ddn3.3 #1 SMP Tue Oct 19 15:02:53 BST 2010 x86_64 GNU/Linux and I have no static classes.
  The way I invoke my application - java -Xmx120m -jar /path/to/app. If I had a bug in the code - I would understand - expensive operation, flaky logic - whatever. But the first statement after the main class and having such slow start I don't think it is normal. </p>