: I have arrived a site where solr is being run under jetty. It is ubuntu 10.04
: i386 hosted on AWS (xen). Our combined solr index size is a mere 21 MB. What
: I am seeing that solr is steadily consuming about 150 MB of swap per week
: and won't relinquish it until sunspot is restarted.

how much physical does the box have?

: Oddly, Jetty doesn't seem to have any memory parameters to speak up supplied
: to it, which may very well be the problem in that no garbage collection is

There is always a max heap size in java, even if not explicitly specified 
on the command line.  what that max heap size is can vary depending on 
your Java version and JVM provider...

http://stackoverflow.com/questions/2915276/what-is-the-default-maximum-heap-size-for-suns-jvm-from-j2se-6

If you look at the SystemInfoRequestHandler output from a running Solr 
instance, the "jvm" section will give you info about the heap in the JVM 
running Solr...

http://localhost:8983/solr/admin/system

<lst name="jvm">
  <str name="version">19.1-b02</str>
  <str name="name">Java HotSpot(TM) 64-Bit Server VM</str>
  <int name="processors">2</int>
  <lst name="memory">
    <str name="free">93.2 MB</str>
    <str name="total">118.4 MB</str>
    <str name="max">1.7 GB</str>
    <str name="used">25.2 MB (%1.4)</str>
    ...


-Hoss

Reply via email to