On Wed, Jul 15, 2015 at 04:51:47PM +0530, P. S. Mukhopadhyay wrote:
> Thanks for you kind response and advices. I tried your suggestions and
> succeeded to overcome the problem. I took following steps:
> 
> edited /etc/default/tomcat7 file and entered :
> 
> JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m
> -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
> -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
> 
> It's working now. But I do have a question. I'm running this test dspace in
> a machine with 1 GB physical RAM. Is this setting of JAVA_OPTS is right?

Right or wrong would be a local judgment, dependent on your load and
your performance expectations.

On a machine with 1GB physical, -Xms1536m will allow the JVM to
request substantially more memory than is physically present.  That
can result in swapping, which will make response slower.  If the
amount of slow-down is acceptable then this is a reasonable
configuration.  If not, I'd recommend adding at least another 1GB.

What I would do (and have done) is to install a resource monitor such
as Psi Probe and examine Tomcat's use of memory regularly, making
adjustments until it runs well with an every-day load and has some
room to expand if there is a sudden great interest in your content.  I
try to size the physical machine to avoid swapping, but a small amount
of swapping will not do noticeable harm to performance.  On the other
hand, I try not to give Tomcat more memory than it really needs for
regular work and occasional demand spikes.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to