Hi Thomas, On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
So the 'out of memory' thing is a bit annoying but not really a big deal the default heap for Java is something like 64MB which is hardly enough for a text editor these days ;)
Yeah, I figured that. But a programmer usually should know how to optimize things like that, exchanging memory for disk when needed. Imagemagick tries it, but judging the 5GB tmpfile creation (which failed on my windows XP machine with NTFS), it doesn't do a very good job ;-)
As far as slow is concerned Java has a fairly odd performance profile. It is _really_ slow at the start (lots of loading and dynamic linking as well as JIT compiling) but once up and running is many times faster. So on a system with a reasonable load it can take a long time for the JVM just to get up and running. This may be a big part of your "problem".
This doesn't seem to be an issue, as logging clearly indicates the step of transcoding the document is causing the delay/memory issues.
Fortunately in a server side application you can easily make the 'printer' a long running server processes that jobs are submitted to avoiding the startup overhead.
That should save some time indeed.
Can you post a sample of the content? Usually the difference isn't this great, part of it is the resolution difference (32000 vs perhaps 1000 which is a 1 to 1024 pixel difference - 200ms turns into 200sec which is 3.5min). But there may be something in the content that is causing problems (especially since you said you had issues with PDF as well).
I will ask tomorrow for permission to put the content online. I am unsure who has the copyright to that document, so that needs to be figured out first. Initially, I tried to create the same situation by creating a new SVG file, but that didn't seem to do much. Just before I was kicked out of the office by security (office closing time) I started up the java profiling toolkit, which seems to give me better insight in what is happening. Tomorrow, I'll put some more time in it, and will try to create a proof of concept. I have not heard from GeoMedia today, but I think they can't do much more than recommend upgrading to their latest version/patchlevel. Thanks for the help again. Kind regards, Pieter Jansen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
