<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Olivier<br>
<br>
I just made a try, and I have been able to instantiate EPSG:27572 ("<i>NTF
(Paris) / Lambert zone II</i>") with only 32 Mb (<tt>java -Xmx32M</tt>)
using the Derby (a.k.a. JavaDB) database. In order to investigate
more, the following information would be useful:<br>
<br>
<ul>
<li>Which EPSG code are you instantiating?</li>
<li>Which database are you using? You can find this information
from the logs, which should contain a message like: "<i>INFO
[ThreadedEpsgFactory] Connecté à la base de données EPSG
"jdbc:hsqldb:/Users/desruisseaux/Library/Geotoolkit.org/EPSG/HSQL/7.06"
sur "HSQL Database Engine".</i>".</li>
<li>Is there any other memory-consuming application running in
same time.<br>
</li>
</ul>
<br>
<br>
Le 24/05/11 14:55, Riou Olivier a écrit :
<blockquote
cite="mid:1778_1306241748_4DDBAAD4_1778_1107_1_02E290128C798A46A5DC7FA4B3068F42C473D5@sbmsg02.tus.fr.thales"
type="cite">
<pre wrap="">I've got the following error when decoding a CRS from my java application :
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
(...snip...)
at java.lang.ClassLoader.loadClass(Unknown Source)
(...snip...)
at org.geotoolkit.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:636)
</pre>
</blockquote>
<br>
According this stack trace, the <tt>OutOfMemoryError</tt> happen at
class loading time. So its look like that the <tt>DirectEpsgFactory</tt>
Geotk code has not been executed at all, since the class did not
even had a chance to be loaded in the JVM. I think that something
else consumed a huge amount of memory before to reach the point
where Geotk create a CRS object from an EPSG code.<br>
<br>
Regards,<br>
<br>
Martin<br>
<br>
</body>
</html>