Hi Sergey,

something else. I was thinking myself whether I should deviate from the
default with the expiry of the soft references. Your definition is:

-XX:SoftRefLRUPolicyMSPerMB=36000

Expiring the softreferences so slowly might not improve the speed of your
server.
Please have a look here:

http://jeremymanson.blogspot.com.au/2009/07/how-hotspot-decides-to-clear_07.html

The default is 1000 msec per free MB. So let's calculate: Assuming you are
using 1000 MB and you have 1000 MB free memory these soft references would
expire after 36*1000 secs, i.e. 10 hours. Do you really want them to hang
around for that long?

Default is 1000, which would make it 16 minutes under the conditions above.
It is only a minor thing and will not solve your problems. However, running
my server with the line above in and out showed the following memory
changes. Please note the scale of the X-Axis are different, 0.5 minute and 2
minutes.

Test with 8 concurrent users, 35 different requests cycled trough. Results
400 requests/min, memory 1.6GB tendency stable 

http://services.land.vic.gov.au/cm/Memory_with_expiring_softreferences.jpg

Same test. Results 370 requests/min, memory 1.8 GB and slowly creeping up.
CPU seems to be a bit less busy.
http://services.land.vic.gov.au/cm/Memory_with_keeping_softreferences.jpg

You see the load on the CPU in both cases is completely different to what
you report. (See first Email))

I wouldn't read anything into the differences of speed, because that is
within the variation of the DB or network, but the memory consumption and
the behaviour is a bit different.
I'll throw it out again and leave it with the default.

And, please put the PermSize to 128, but leave the MaxPermSize where it is.
I would be very surprised if your Geoserver instance uses more than 150 MB,
but it will be probably more in the vicinity of 100 MB. Once everything has
loaded this value doesn't change much.  So, you are currently wasting 350
MB. Calling the Java VisualVM will tell you what this value actually is. 


Cheers

Christian



-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:        +61-3-8636 2325
Telefax:              +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Geoserver-performance-is-low-but-Geoserver-doesn-t-uses-even-a-half-of-system-resources-tp5092576p5092834.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to