SUMMARY: Java and memorylimit

From: Andrew Watkins (andrew@dcs.bbk.ac.uk)
Date: Thu Jan 20 2000 - 07:36:57 CST


Hi,

Well, it looks like the people who tried it all had the same problem, but
I am still no better off since I can not see why such much memory is
being used.

Sun can not get the same to happen to them so, I will have to fotget about
it until track the problem down a little more.

Thanks to:

"Francois Marcos"
"Roger D Mcgraw, Jr"
Anthony Worrall

Cheers Andrew

> I have an interesting problem with java and restricting memorysize for a user.
>
> I had to set memorysize for our users, since they were creating run away
> memory programs, but then I notice java had problems if I set it to low.
>
> I have been talking to Sun and they have been very helpful, but there can
> not get the same results, so I am asking if anyone has a few minutes
> to try the following on any Solaris 7 box. I get the same errors on all
> our Solaris 7 and Solaris 8 boxes, so I am after another Solaris box which I
> have not touched!
>
> % java -version
> java version "1.2.1"
> Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit)
>
> % limit memorysize 70m
> % java -version
> Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
>
> % jar tf /usr/java1.2/jre/lib/rt.jar
> Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
>
> % limit memorysize 60m
> % java -version
>
> *** panic: Could not allocate compiled code zone of size 16777216
>
> Abort
> % limit memorysize 60m
> % java -version
> Failed to initialize heap of size: 8192kb
> Could not create the Java virtual machine.
>
> This is not a major problem, since I have now set the memory to a larger
> figure, but I would like to get to the bottom of it.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:01 CDT