Hi,

as far as I know DSpace doesn't need a big amount of memory. For the first step 
you can try to setup CATALINA_OPTS to

CATALINA_OPTS: -Xms1024m -Xmx2048m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8

And as Alan highlighted you could use JAVA_OPTS with less memory.

Second step you could try to check if the I/O is the real issue. Maybe POSTGRES 
and SOLR and TOMCAT write and read on the same node and so you can benefits 
from separate them (or one of them) on differents volumes.

Let me know.

Regards,

Luigi Andrea


Il 11/08/2016 11:46, Evelthon Prodromou ha scritto:
The server has 32GB, postgresql on different box. I don't think it's a RAM 
issue.

I am wondering if it is a solr issue. I don't have tomcat running as user 
dspace. Instead, I change ownership in [dspace]/solr to dspace:tomcat and gave 
rw rights to both user and group.

Thanks



On Thursday, August 11, 2016 at 12:33:05 PM UTC+3, Alan Orth wrote:
Hi,

>From your JAVA_OPTS I see you are allocating 4096 + 2048 megabytes of
RAM to Tomcat right from the start. How much memory does your server
have? This means your host must have AT LEAST 6GB of RAM just for
Tomcat, let alone PostgreSQL, Solr, and the rest of the operating
system. I wouldn't be surprised if you are encountering poor
performance due to swapping.

For reference, we run a fairly large DSpace instance with ~55,000
items and a decent amount of traffic and these are our JAVA_OPTS:

-Djava.awt.headless=true -Xms3072m -Xmx3072m -XX:MaxPermSize=256m
-XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8

Our server has 8GB of physical memory. Unless you know you need all
those JVM tweaks, I'd start by simplifying your JAVA_OPTS to something
more simple (for testing at least).

Regards,

On Wed, Aug 10, 2016 at 7:03 PM, Evelthon Prodromou
<[email protected]<javascript:>> wrote:
> Hello,
>
>
>  I seem to be having an issue with tomcat. It takes ~38+ seconds to load
> pages. I believe it's tomcat since i notice shell scripts (
> [dspace]/bin/dspace ) executing slow when tomcat is started, and very fast
> (normal I presume) when tomcat is stopped.
>
>
> The system  is a new installation of DSpace 5.5 on CentOS7. Data and sql
> migrated from an 1.7.0 installation.
>
> tomcat.conf includes the following JAVA_OPTS
>
> JAVA_OPTS="-Xmx4096m -Xms4096m -XX:MaxPermSize=2048m -Dfile.encoding=UTF-8
> -XX:MaxHeapFreeRatio=70 -XX:+UseConcMarkSweepGC
> -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"
>
> index-discovery was executed and discovery facets show up.
>
>
> Someone please point me to the right direction to investigate.
>
>
> Thank you,
>
>
> Evelthon
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]<javascript:>.
> To post to this group, send email to [email protected]<javascript:>.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.



--
Alan Orth
[email protected]<javascript:>
https://englishbulgaria.net
https://alaninkenya.org
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche
GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Luigi Andrea Pascarelli

DSpace Committer and DSpace-CRIS Lead Developer

4Science,  www.4science.it<http://www.4science.it> (an Itway Group Company)

office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
tel: +39 333 934 1782
skype: l_a_p82
linkedin: luigiandreapascarelli

====================================
Salvate un albero. Non stampate questa mail se non necessario.
Save a tree. Don't print this e-mail unless it's really necessary.

DISCLAIMER: Le informazioni contenute in questo messaggio sono confidenziali, 
possono essere protette da leggi locali,
e devono essere utilizzate esclusivamente dal destinatario.  La pubblicazione, 
l'utilizzo, la divulgazione, la stampa
o la copia non autorizzata del contenuto della presente e-mail sono 
espressamente vietate e potenzialmente illegali.
Nel caso si sia ricevuto il presente messaggio per errore, si prega di 
cancellarlo e di inviarne notifica al mittente.

DISCLAIMER: The information contained in this message is confidential, can be 
legally protected by local Laws,
and must be exclusively used by the recipient. The publication, use, 
distribution, printing or unauthorized copy
of the content of this message is strictly forbidden and it can be illegal. If 
you received this message by mistake,
please destroy it and notify it to the sender.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to