[Geoserver-users] Java heap space error

Hello all,

My setup is

openlayers + Geoserver 1.5 RC2 with 2 layers:
A geoTiff and a shapeFile

When through the opelayers GUI select the max zoom level the following error occurs
java.lang.OutOfMemoryError: Java heap space

and the Geoserver crashes!

Has anyone encounter something similar ?

Thx


×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr

gpio Oxxce ha scritto:

Hello all,

My setup is

openlayers + Geoserver 1.5 RC2 with 2 layers:
A geoTiff and a shapeFile

When through the opelayers GUI select the max zoom level the following error occurs java.lang.OutOfMemoryError: Java heap space

and the Geoserver crashes!

Has anyone encounter something similar ?

Hmmm... may be. I guess when fully zoomed in, the single pixel
of your tiff file becomes so big that it's well wider than the screen.
In this case the rendering code OOM's in fact (just a temporary failure,
it affects only the request you're making and those so unlucky to
hit the server as the same time).

Is this your case?
Cheers
Andrea

ps: ah, I guess we should simply refuse to render coverages when so
zoomed in...

Hm,
probably you are right.

How I can refuse to render my raster in full zoom ?

thx

Andrea Aime aaime@anonymised.com Ýãñáøå:

gpio Oxxce ha scritto:

Hello all,

My setup is

openlayers + Geoserver 1.5 RC2 with 2 layers:
A geoTiff and a shapeFile

When through the opelayers GUI select the max zoom level the following
error occurs
java.lang.OutOfMemoryError: Java heap space

and the Geoserver crashes!

Has anyone encounter something similar ?

Hmmm… may be. I guess when fully zoomed in, the single pixel
of your tiff file becomes so big that it’s well wider than the screen.
In this case the rendering code OOM’s in fact (just a temporary failure,
it affects only the request you’re making and those so unlucky to
hit the server as the same time).

Is this your case?
Cheers
Andrea

ps: ah, I guess we should simply refuse to render coverages when so
zoomed in…


×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr

Ciao,
which java args did you use to start the GeoServer? Could also paste here
the characteristics of the geotiff you a reusing?

Simone.

gpio Oxxce wrote:

Hello all,

My setup is

openlayers + Geoserver 1.5 RC2 with 2 layers:
A geoTiff and a shapeFile

When through the opelayers GUI select the max zoom level the following
error occurs
java.lang.OutOfMemoryError: Java heap space

and the Geoserver crashes!

Has anyone encounter something similar ?

Thx

---------------------------------
Χρησιμοποιείτε Yahoo!
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την
καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://login.yahoo.com/config/mail?.intl=gr
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Java-heap-space-error-tf3427516.html#a9554840
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi all,

which java args did you use to start the GeoServer?
I didnt use any special arguments , just the java command.

Could also paste here the characteristics of the geotiff you a reusing?
I used the NASA’s Blue Marble .ecw file, and then with the fwtools by issuing the command :

gdal_translate -of GTiff

i produced my tiff.

Thx

“Simone.Giannecchini” simboss1@anonymised.com Ýãñáøå:

Ciao,
which java args did you use to start the GeoServer?

Could also paste here the characteristics of the geotiff you a reusing?

Simone.

gpio Oxxce wrote:

Hello all,

My setup is

openlayers + Geoserver 1.5 RC2 with 2 layers:
A geoTiff and a shapeFile

When through the opelayers GUI select the max zoom level the following
error occurs
java.lang.OutOfMemoryError: Java heap space

and the Geoserver crashes!

Has anyone encounter something similar ?

Thx


×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr

gpio Oxxce ha scritto:

Hi all,

>which java args did you use to start the GeoServer?
I didnt use any special arguments , just the java command.

>Could also paste here the characteristics of the geotiff you a reusing?
I used the NASA's Blue Marble .ecw file, and then with the fwtools by issuing the command :

gdal_translate -of GTiff

i produced my tiff.

Heh??? No, that's wrong, it would produce a file that would be bigger
than 4gb. You have to split or compress it. Plus, use -co "TILED=YES"
when creating it. You sure you did non provide any other options?

Cheers
Andrea

Hi Andrea, All

Heh??? No, that’s wrong, it would produce a file that would be bigger
than 4gb. You have to split or compress it. Plus, use -co “TILED=YES”
when creating it. You sure you did non provide any other options?

Well the size is smaller because the selected bbox is relative small. Also i reproduced my tiff with the -co “TILED=YES” option but the memory problem continues in large zoom levels.

gdal_translate -of GTiff -co “TILED=YES” -projwin 23.30 35.91 26.43 34.40 world-topo-bathy-200401-3x86400x43200.ecw my.tiff

thx

Andrea Aime aaime@anonymised.com Ýãñáøå:

gpio Oxxce ha scritto:

Hi all,

which java args did you use to start the GeoServer?
I didnt use any special arguments , just the java command.

Could also paste here the characteristics of the geotiff you a reusing?
I used the NASA’s Blue Marble .ecw file, and then with the fwtools by
issuing the command :

gdal_translate -of GTiff

i produced my tiff.

Heh??? No, that’s wrong, it would produce a file that would be bigger
than 4gb. You have to split or compress it. Plus, use -co “TILED=YES”
when creating it. You sure you did non provide any other options?

Cheers
Andrea


×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr