Trouble running IDEA 5 on Sunray thin clients: OOM exceptions

I'm having some trouble trying to run IDEA 5 on the Sunray thin clients
we use at the university. Specifically, we get OutOfMemoryErrors in
ZipFile.open(), followed by millions of secondary errors that make IDEA
completely unusable. These errors don't occur on startup but do occur
when a project is loaded, even if the project is completely empty.

IDEA 4.5 runs without problem, and the same networked IDEA 5
installation works fine on standard Solaris machines.

This may have something to do with the machines where the software is
being run being detected as servers by the 1.5 VM, since they have
multiple CPUs and 4 GB of memory, but then the ulimits are set to 8M
(stack) / 512M (data) due to each server being used by many students at
the same time. However, I've tried adding -client to idea.vmoptions and
changing memory parameters without success.

Does anyone have any clues as to what might be happening?

3 comments

Well, with a hard limit of 8MB for the stack, I find it hard to believe you could run IDEA on this thin client. But then, I'm not completely sure about how these thin clients really works...

0

Marcus Brito wrote:

Well, with a hard limit of 8MB for the stack, I find it hard to believe you could run IDEA on this thin client.


I have no problem running IDEA on ordinary Solaris machines with an 8 MB
stack limit, so I don't think that's the problem:

<22:50>~% ulimit -a ## on a machine where IDEA 5 works.
cpu time (seconds) unlimited
file size (blocks) unlimited
data seg size (kbytes) unlimited
stack size (kbytes) 8192
core file size (blocks) 0
file descriptors 256
virtual memory size (kb) unlimited

Also, I have no problems running IDEA 4.5 on the thin clients, or any
other modern software such as Firefox.

> But then, I'm not completely sure about how these thin clients really
> works...

Well, it's basically like an X terminal where the processes are run on a
remote server. Nothing magical there except that the remote server is a
multi-CPU multi-gigabyte machine with more concurrent users than you
usually have on your ordinary desktop. A load balancing system
transfers new logins to the least loaded remote server.

So the only thing I can think of that would affect this is that IDEA 5
runs under Java 5 which I think treats server-class machines
differently. But any other clues would be welcome...

0

Jonas Kvarnström wrote:

I'm having some trouble trying to run IDEA 5 on the Sunray thin clients
we use at the university. Specifically, we get OutOfMemoryErrors in
ZipFile.open(),


After searching the Bug Parade a bit more carefully, it seems like this
is a known bug where Java always tries to mmap() zip files into memory,
which requires virtual memory the size of the entire zip file. With a
per-process VM limit of 512 MB, most of the memory is quickly eaten by
zip files, but by changing the max heap size to 140 MB and the
MaxPermSize to 80 MB I can at least load projects.

0

Please sign in to leave a comment.