tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan teague-rector <setea...@vcu.edu>
Subject Re: catalina.sh and java_opts question
Date Mon, 17 Aug 2009 17:56:01 GMT
Hi all,

Weird - I only got this response and nothing else from the list...


Anyways, I'm not using solr - Just Tomcat - and I don't have Tomcat as a 
service
I have a startup script for it. Should I just place JAVA_OPTS in the 
startup script?

I'm on linux/redhat btw -

So my script does this:

export JAVA_OPTS="-server -Xms512m -Xmx1024M -Xms64M -Dfile.encoding=UTF-8"

/usr/local/tomcat_5.5/bin/startup.sh


Does it make sense to define JAVA_OPTS here?

Thanks!







Martin Gainty wrote:
> generally accepted to set JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'
>
> in the event you dont have a "TOMCAT account" on your box
> pls read this posting from david at cornell on setting JAVA_OPTS for use by TC 
>
> Aaron Aberg wrote:
> > Hi,
> >
> > I'm using Linux CentOS with Plesk 9.2.1, Tomcat 5.5 and Solr 1.3.0. I
> > installed the solr war file through the plesk control panel but it
> > doesnt start up. The logs reveal that solr/home property needs to be
> > set before it can be started up. After some googling, I found out that
> > I could set the property in web.xml in the war file. This didn't seem
> > to work for me.
> >
> > When I was first playing with solr, it was on a Windows machine and
> > its very simple to set this property. You can do it through the tomcat
> > service system tray application. However, I am using Linux now and I
> > believe that I need to set this option in JAVA_OPTS. I have seen a
> > bunch of examples where someone will export the variable etc and then
> > run the catalina.sh command. I can't do that. I need to start and stop
> > the service via plesk.
> >
> > This is what I'm thinking. I see in /etc/passwd that the tomcat user
> > has a default path of /usr/share/tomcat5. I'm wondering if I could put
> > a .bashrc file in that directory and set the option there. Would that
> > work? Does anyone have an idea as to how I can solve this problem?
> >
> > By the way the option should be something like:
> > JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'
> >
> > Thanks in advance,
> > Aaron
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >   
> So ... what I'm reading is you are starting tomcat as a service.  In
> that case, there should be a script in /etc/init.d for starting/stopping
> tomcat.  Take a look at that.  If the settings aren't in there, the
> script may have comments pointing you in the right direction.  I don't
> think the .bashrc will work because the tomcat account is probably
> disabled.  That's the way all accounts used by linux/unix services are
> for security reasons.  There is no interactive login to run a .bashrc
> file from when tomcat starts or stops.
>  
> --David
>
>
> Martin Gainty
> ______________________________________________
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, 
> hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy 
> másolatának készítése nem megengedett.  Ez az üzenet csak ismeret 
> cserét szolgál és semmiféle jogi alkalmazhatósága sincs.  Mivel az 
> electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi 
> felelöség nem terhelhet ezen üzenet tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
> Diese Nachricht dient lediglich dem Austausch von Informationen und 
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den 
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Mon, 17 Aug 2009 11:34:49 -0400
> > From: seteague@vcu.edu
> > To: users@tomcat.apache.org
> > Subject: catalina.sh and java_opts question
> >
> > Hello all,
> > I've searched around on the net and have found differing opinions about
> > where to actually place the java_opts env var for tomcat.
> > Should this variable be in /tomcat/bin/catalina.sh? When I set it in
> > this file and then print out all env vars, it looks like it is not set.
> > How do I set java_opts to enable my tomcat applications to get to it?
> > Thanks,
> > Susan
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
> ------------------------------------------------------------------------
> With Windows Live, you can organize, edit, and share your photos. 
> Click here. <http://www.windowslive.com/Desktop/PhotoGallery>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message