Jar Files and memory footprint...

Amancio Hasty hasty at rah.star-gate.com
Thu Jan 7 22:37:09 PST 1999


The kaffe version is todays -snap.

Curious about Kaffe's memory foot print when using jar files vs  using
unpacked Klasses.jar and classes.zip

This is a "ps" of  small test program not using Klasses.jar nor 
classes.zip rather the classes having been unpacked to a directory:

./java.nojar -verbosemem -ms 500k -mx 1M -as 100K Test foo > & dump
  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
61149 root      64   0  2468K  1632K RUN      0:07 85.56% 25.29% Kaffe

PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
61165 root      80   0 14248K  8592K RUN      0:10 91.62% 36.08% Kaffe


This is the dummy test program:

import java.lang.Long.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.lang.System;

public class Test {
  public static void main (String args[]) {
      URL home = null;
     while ( true )  {
      try {
           home = new URL(args[0]);
      } catch (MalformedURLException ex) {
          System.out.println("try again" + ex);
      }
        System.gc();

  }
        }
}

	Tnks,
	Amancio





More information about the kaffe mailing list