Consider altering your Solr config the have very low cache sizes... sounds like you won't need them too much anyway. If you have your 512mb system online you can look at the solr stats and see how full the caches are to get a starting point.

Ta,
Greg

On 12 December 2012 07:50, Yongming Wang <wangyo@tcnj.edu> wrote:
Tod, Benjamin, and Demian,

Thank you all for your valuable advises. I'm going to start with setting 256M Java VM, and maybe adjust some Apache config at the same time.



Yongming

---------------------------------
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wangyo@tcnj.edu
---------------------------------

----- Original Message -----
From: "Demian Katz" <demian.katz@villanova.edu>
To: "Yongming Wang" <wangyo@tcnj.edu>, vufind-general@lists.sourceforge.net
Sent: Tuesday, December 11, 2012 2:54:11 PM
Subject: RE: [VuFind-General] VuFind and RAM

Solr is really the main memory hog for VuFind.  Anything under 1GB is pretty tight, but if it works for you at 512M, you could try 256M and see what happens.  The biggest danger is that it becomes unresponsive as a result of going into excessive garbage collection mode, but this can be resolved by simply restarting Solr.  If you're giving a demo with the understanding that it's not on production hardware, perhaps your users will be tolerant of the need for an occasional restart.

As Tod said, VuFind won't run with MySQL disabled -- it expects the database to be available.  I don't think it would be a trivial operation to eliminate this dependency (though maybe you could by commenting out lots of code).  But if you're not actually using the MySQL features for anything, it may be enough to drop the MySQL memory configuration if that buys you a little more room.

As far as session time-outs go, these shouldn't be taking up memory.  Sessions can be stored on disk or in the database.  If you switch to file-based sessions, I don't think the expiration time is relevant to your RAM consumption.

- Demian

> -----Original Message-----
> From: Yongming Wang [mailto:wangyo@tcnj.edu]
> Sent: Tuesday, December 11, 2012 1:59 PM
> To: vufind-general@lists.sourceforge.net
> Subject: [VuFind-General] VuFind and RAM
>
> Dear VuFind community,
>
> We are an academic library consortia. We have just successfully installed
> VuFind 1.3 on our Amazon Cloud EC2 linux server.
>
> But our server has very small RAM, only 600M (the micro version). We are still
> in the trial period. I decreased the Jetty/Java default 1G memory setting to
> 512M in order to make it to run.  Now the free memory drops to around 15 - 35M
> after starting VuFind. We are going to give a demo right after the New Year.
> Instead of upgrading the server memory, which is not a simple process, I'm
> thinking of doing following several things, and would like to get the opinion
> and guidance from the community:
>
> (We only have a couple of thousands marc records right now.)
>
> 1. Can I decrease the Java VM requirement further, to 256M?
>
> 2. If I stop mysql server (it is a big memory eater.), what is the
> consequence? All I can think of is all the login/my account features won't
> work. Am I right?
>
> 3. I noticed that the session time-out value for VuFind to release memory is
> rather long, maybe more than 30 minutes. Is it possible to shorten that to,
> say, 5 minutes? I'm considering this because if several audience at the demo
> try to access and search VuFind at the same time while the demo is going, it
> will probably cause the memory overflow and VuFind will hang. So I want VuFind
> to release memory as quickly as possible.
>
>
> And are there other ways to decrease the VuFind memoray usage?
>
>
> Thanks very much for your help.
>
>
>
>
> Yongming
>
> ---------------------------------
> Yongming Wang
> Systems Librarian
> The College of New Jersey Library
> phone: 609-771-3337
> email: wangyo@tcnj.edu
> ---------------------------------
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> VuFind-General mailing list
> VuFind-General@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vufind-general

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general