[Mulgara-general] Mulgara size limits
Life is hard, and then you die
ronald at innovation.ch
Wed Jul 2 05:55:44 PDT 2008
On Wed, Jul 02, 2008 at 05:21:21AM -0700, Chuck Borromeo wrote:
> Hello,
> OK I'm going to be a pain in the neck :). I tried running Mulgara with the -Xrunhprof:heap=sites switch. The process threw a java.security.AccessControlException: access denied error when I ran it using the -Xrunhprof switch. I have never run java with the dump file commands so I would appreciate anyone telling me how to fix this issue. I looked up the error and it said something about changing my java.policy and java.security files to allow the process to see these files. However, it didn't make much sense to me. I am running Mulgara with the sudo command so I should have permission to see everything. How do I fix this? (I'll attached the stack trace at the end of this message).
The java access-control stuff has nothing to do with unix permissions,
so being root or not doesn't change anything. The odd thing is,
mulgara sets a policy which should allow access to all files - see the
mulgara startup message
INFO [main] (EmbeddedMulgaraServer.java:692) - java.security.policy set to jar:file:/..../mulgara-2.0-alpha.jar!/conf/mulgara-rmi.policy
So I'm not sure what's going on either.
> So...I tried running Mulgara with the
> -XX:+HeapDumpOnOutOfMemoryError switch. This did generate a .hprof
> file (about 1 GB in size!). I tried opening this file using a 1.6
> version of jhat (1.5's jhat can't open a 64 bit .hprof file).
> However, I am getting a NullPointer exception from jhat when opening
> the file.
I'm not surprised - as I said before, I've found 1.5 to be unreliable
in this respect. If you can run under 1.6 I think you'll have better
luck.
Cheers,
Ronald
More information about the Mulgara-general
mailing list