Could have just been the amount of memory it was given. I think java needs
512M just to load System.out.println ;-) Back in my day we wrote our print
routines in assembly language and our professors would beat us severely if
the executable was more than 2K!

Seriously though, I don't know all the data that gets passed back to the
service, but I usually find a 2gb heap size to be pretty comfy. I can still
blow through it if I enable a tree results listener and start downloading
gigabytes of requests from a server -- the results keep accumulating in the
listener and never go away. But even for tests where I have to deal with
some fairly hefty images, 2gb works pretty well for me.

I had someone request that I do something with a 2gb file one time though,
that was annoying. I looked at doing something with it in raw java, but
every library I looked at to decode it wanted to load the whole thing into
memory at once. I ended up just making them give me a smaller file to work
with.

-- 
Bruce Ide
flyingrhenqu...@gmail.com

Reply via email to