Ciao a tutti,
this situation IMHO is caused by a server running on windows that has
exhausted the _native_ memory available for its jvm process and hence
the jvm itself cannot allocate memory to work.
Solutions (not orthogonal to each other), tweak
XX:MaxDirectMemorySize, don't increase Xmx too much (the jvm process
memory is splitted between heap and native memory).

Additional, longer term, improvement is to drop windows and work on linux :)
Regards,
Simone Giannecchini
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Tue, Apr 9, 2013 at 6:59 PM, Andrea Aime
<[email protected]> wrote:
> On Tue, Apr 9, 2013 at 6:47 PM, Jonathan Moules
> <[email protected]> wrote:
>>
>> Hmm, may have spoken too soon. Increasing it to 128MB results in GeoServer
>> crashing:
>>
>> # There is insufficient memory for the Java Runtime Environment to
>> continue.
>> # Native memory allocation (malloc) failed to allocate 101632500 bytes for
>> jbyte in C:\BUILD_AREA\jdk6_38\hotspot\src\share\vm\prims\jni.cpp
>
>
> Now, this is one of the things that should never happen. This is a JVM
> crash, so you're hitting a JVM bug (at most the JVM should state it cannot
> allocate memory, never crash like this).
>
>>
>>
>> Looking at the documentation, it doesn't say which portion of the memory I
>> assigned at startup that its drawing from. What do I need to increase to
>> actually allow me to use the 128MB?
>> (The machine has tens of GB of free RAM, so that's not the issue)
>>
>> I tried doubling to: "set JAVA_OPTS="-Xmx1G -Xms256m -XX:MaxPermSize=512m"
>> - but to no avail (memory management is an arcane art to me :-) ).
>
>
> Well, if you are in the business of handling large raster requests 1GB might
> not be enough, pump up -Xmx to something higher (do the math, how many
> concurrent requests do you want to handle? How much memory do they consume?)
>
> And then probably you want to lower the JAI settings back to their original
> values?
>
> Cheers
> Andrea
>
> --
> ==
> GeoServer training in Milan, 6th & 7th June 2013!  Visit
> http://geoserver.geo-solutions.it for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to