You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Charl Gerber <ch...@yahoo.com> on 2008/03/23 22:26:44 UTC
Memory allocation
Hi,
I'm setting up a Centos 5 server with Apache, MySQL
and Tomcat 6 (jre 1.6). I think we have joomla on it
as well. The machine will be used purely as a
webserver running a tomcat app and maybe some static
html from the apache server. Quite a bit of
interaction with the MySQL server will be done. We
have 2GB of memory in the machine. How much should I
allocate to Tomcat and where/how do I do it? I suspect
in the catalina.sh file? I am pretty new to managing a
linux machine, so I am not familiar with the
configurations.
We'd like to optimize Tomcat's performance, but
obviously need to find a balance where MySQL and
Apache will have enough memory too. We don't have many
hard stats about connections expected etc, so we want
to start with a default configuration and memory
allocation that will ensure all apps involved will
have a decent chunk of the memory to work with, but
not too little or too much.
Thanks!
Charl
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Charl Gerber <ch...@yahoo.com>.
Thanks. I will check into the comments you gave. The
Apache server was pre installed and I have no idea how
it works. Not even sure if there are virtual hosts.
Will have to check up on that.
cPanel is used to administer the account.
--- Rainer Jung <ra...@kippdata.de> wrote:
> Hi Charl,
>
> Charl Gerber schrieb:
> > OK, my worker.properties:
> >
> > worker.list=worker1
> > worker.worker1.type=ajp13
> > worker.worker1.host=localhost
> > worker.worker1.port=8009
>
> OK
>
> > and in my server.xml:
> >
> > <Connector port="8009" protocol="AJP/1.3"
> > redirectPort="8443" />
>
> OK
>
> > The latter I did not add, it was there by default
> > after I installed tomcat. In fact, I didn't change
> > anything in server.xml, its the default installed
> > version. My war is deployed by just dumping the
> .war
> > in the webapps dit and I can access it using url:
> > localhost:8080/myapp/index.html
>
> Good.
>
> > No errors are reported, but my tomcat app is just
> not
> > reached via apache. The connector is still not
> > working.
> >
> > Added mod configuration:
> >
> > LoadModule jk_module
> >
>
/usr/local/apache/libexec/mod_jk-1.2.26-httpd-1.3.39-eapi.so
> > AddModule mod_jk.c
>
> Those seem to work, since you get the "initialized"
> message in the JkLogFile
>
> > JkWorkersFile /etc/httpd/conf/workers.properties
> > JkShmFile /usr/local/apache/logs/mod_jk.shm
> > JkLogFile /usr/local/apache/logs/mod_jk.log
> > JkLogLevel info
>
> Anything in the JkLogFile apart from the initialized
> message?
> What's the URL of the request you are testing with,
> and what answer do
> you get exactly?
>
> > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> I would remove the JkLogStampFormat (e.g. the
> default gives you
> milliseconds or microseconds), but that's not the
> reason for your problems.
>
> > JkMount /myapp/* worker1
>
> If you have any VirtualHost somewhere in your httpd
> configuration, you
> need to put the JkMount into the VirtualHost that
> handles your request.
>
> If you need to put it into several VirtualHosts, ou
> can also use
> JkMountCopy.
>
> > Can anyone spot errors here? The paths are all
> valid,
> > triple-checked those.
>
> If the VirtualHost thing doesn't apply, raise
> JkLogLevel to debug,
> restart httpd and send a single request. The
> JkLogFile then contains
> detailed info about reading/parsing the config and
> about mapping your
> request via JkMount.
>
> >
> > Thanks.
>
> Regards,
>
> Rainer
>
> > --- Charl Gerber <ch...@yahoo.com> wrote:
> >
> >> Hi,
> >>
> >> using jdk 1.6_05, Tomcat 6.0.14 and Apache
> 1.3.39.
> >>
> >> Tomcat seems to be working fine on its own, as
> does
> >> Apache. I installed the mod_jk connector
> according
> >> to
> >> documentation so much so that I eventually get
> the
> >> log
> >> message:
> >>
> >> [Tue Mar 25 21:32:19 2008] [32488:0] [info]
> >> jk_init::mod_jk.c (2706): mod_jk/1.2.26
> initialized
> >>
> >> I think the connector is fine. Accessing my
> tomcat
> >> app
> >> (running on port 8080) doesn't seem to work,
> though.
> >> I
> >> read I still have to change the server.xml of
> Tomcat
> >> and find an example:
> >>
> >> <Connector port="15409" protocol="AJP/1.3" />
> >>
> >> Is that all? And which port do I use?
> >>
> >> Thanks in advance!
> >> Charl
>
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Rainer Jung <ra...@kippdata.de>.
Charl Gerber schrieb:
>> Anything in the JkLogFile apart from the initialized
>> message?
>
> nope, that's the only message I get.
>
>> What's the URL of the request you are testing with,
>> and what answer do you get exactly?
>
> Url:
>
> www.mydomain.com/myapp
>
> (There's a default index.html configured in it)
>
> Reply is:
> Not Found
> The requested URL /golfcentral was not found on this
> server.
This sounds like something send a redirect to /golfcentral, because
that's not the URL you were trying to reach. You would need to find out,
which component knows about /golfcentral, and why it sends a redirect.
If you want to make sure, that you are getting a redirect (I'm only
stating this, I don't have a proof), then you can send the original
request with a client, that does not follow a redirect and does show you
the original request (e.g. curl or Firefix with the Firebug plugin).
> Additionally, a 404 Not Found error was encountered
> while trying to use an ErrorDocument to handle the
> request.
Sounds like the /golfcentral is coming from the httpd, because
ErrorDocument is the name of an httpd configuration directive.
>> If you have any VirtualHost somewhere in your httpd
>> configuration, you
>> need to put the JkMount into the VirtualHost that
>> handles your request.
>
> Yes, there are virtual hosts. httpd.conf is generated
> by cPanel and sayd '# DO NOT EDIT. AUTOMATICALLY
> GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE
> THE INCLUDE FILES.'
>
> Problem is that they did not create include links for
> in the virtual hosts, so I will have to edit the conf
> file anyway. Do I do it for every virtual host and
> then only for the virtual hosts? Or where else?
You need to understand the virtual host structure in the apache httpd.
The virtual hosts should be distinguishable by IP, Port and
ServerName/ServerAlias. You need to find out, which virtual host you are
actually talking to.
If you've got not idea, you can put a different JkLogFile into each
virtual host and set JkLogLevel in the global server to debug. Retsrat
httpd, wait until the next minute and then send a request. The virtual
host that handles the request should write somethin to the log file
during request processing. After restart you need to wait a bit, because
during restart all of them write something to their log files. Waiting a
bit makes it easier to find the one, that contains the newer lines from
the request handling.
>> If you need to put it into several VirtualHosts, ou
>> can also use JkMountCopy.
If you definitely don't want to care about the virtual hosts, then you
can set "JkMountCopy All" in the global server (where you already have
the JkWorkersFile etc.)
Caution: this does mean, that all virtual hosts forward the URLs that
match the JkMount to your Tomcat.
A procedure somewhere between JkMountCopy All and putting JkMount into
the virtual hosts is putting JkMount into the global part, and putting a
"JkMountCopy On" into the virtual host.
In general you should really try to understand, what virtual hosts are
there and what they are used for.
>
> How? Where?
>
> Thanks again!
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Charl Gerber <ch...@yahoo.com>.
> Anything in the JkLogFile apart from the initialized
> message?
nope, that's the only message I get.
> What's the URL of the request you are testing with,
> and what answer do you get exactly?
Url:
www.mydomain.com/myapp
(There's a default index.html configured in it)
Reply is:
Not Found
The requested URL /golfcentral was not found on this
server.
Additionally, a 404 Not Found error was encountered
while trying to use an ErrorDocument to handle the
request.
> If you have any VirtualHost somewhere in your httpd
> configuration, you
> need to put the JkMount into the VirtualHost that
> handles your request.
Yes, there are virtual hosts. httpd.conf is generated
by cPanel and sayd '# DO NOT EDIT. AUTOMATICALLY
GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE
THE INCLUDE FILES.'
Problem is that they did not create include links for
in the virtual hosts, so I will have to edit the conf
file anyway. Do I do it for every virtual host and
then only for the virtual hosts? Or where else?
> If you need to put it into several VirtualHosts, ou
> can also use JkMountCopy.
How? Where?
Thanks again!
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Rainer Jung <ra...@kippdata.de>.
Charl Gerber schrieb:
>> If you have any VirtualHost somewhere in your httpd
>> configuration, you
>> need to put the JkMount into the VirtualHost that
>> handles your request.
>
>
> That works now! I mounted it to the virtual host, and
> it worked! Kinda.
>
> I doesn't work with the url
>
> domain/myapp
> I have to type an actual file:
> domain/myapp.index.html
I think you meant
domain/myapp/index.html ?
You need to define index.html as a welcome file in the web.xml contained
in your webapp (Tomcat side).
Also you need to JkMount:
JkMount /myapp worker1
JkMount /myapp/* worker1
That's better than simply "JkMount /myapp*", because that way you don't
map /myappother/something.
There is a shortcut notation that means exactly the same as the two Maps
above:
JkMount /myapp|/* worker1
In general "JkMount /A|B" always resolves to "JkMount /A" and "JkMount /AB".
>
> How do I set that right? On standalone tomcat on my
> other servers I can access it with just /myapp, no
> need for the correct file url.
>
> Thanks for all the help.
Have fun!
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Charl Gerber <ch...@yahoo.com>.
> If you have any VirtualHost somewhere in your httpd
> configuration, you
> need to put the JkMount into the VirtualHost that
> handles your request.
That works now! I mounted it to the virtual host, and
it worked! Kinda.
I doesn't work with the url
domain/myapp
I have to type an actual file:
domain/myapp.index.html
How do I set that right? On standalone tomcat on my
other servers I can access it with just /myapp, no
need for the correct file url.
Thanks for all the help.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Rainer Jung <ra...@kippdata.de>.
Hi Charl,
Charl Gerber schrieb:
> OK, my worker.properties:
>
> worker.list=worker1
> worker.worker1.type=ajp13
> worker.worker1.host=localhost
> worker.worker1.port=8009
OK
> and in my server.xml:
>
> <Connector port="8009" protocol="AJP/1.3"
> redirectPort="8443" />
OK
> The latter I did not add, it was there by default
> after I installed tomcat. In fact, I didn't change
> anything in server.xml, its the default installed
> version. My war is deployed by just dumping the .war
> in the webapps dit and I can access it using url:
> localhost:8080/myapp/index.html
Good.
> No errors are reported, but my tomcat app is just not
> reached via apache. The connector is still not
> working.
>
> Added mod configuration:
>
> LoadModule jk_module
> /usr/local/apache/libexec/mod_jk-1.2.26-httpd-1.3.39-eapi.so
> AddModule mod_jk.c
Those seem to work, since you get the "initialized" message in the JkLogFile
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkShmFile /usr/local/apache/logs/mod_jk.shm
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel info
Anything in the JkLogFile apart from the initialized message?
What's the URL of the request you are testing with, and what answer do
you get exactly?
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
I would remove the JkLogStampFormat (e.g. the default gives you
milliseconds or microseconds), but that's not the reason for your problems.
> JkMount /myapp/* worker1
If you have any VirtualHost somewhere in your httpd configuration, you
need to put the JkMount into the VirtualHost that handles your request.
If you need to put it into several VirtualHosts, ou can also use
JkMountCopy.
> Can anyone spot errors here? The paths are all valid,
> triple-checked those.
If the VirtualHost thing doesn't apply, raise JkLogLevel to debug,
restart httpd and send a single request. The JkLogFile then contains
detailed info about reading/parsing the config and about mapping your
request via JkMount.
>
> Thanks.
Regards,
Rainer
> --- Charl Gerber <ch...@yahoo.com> wrote:
>
>> Hi,
>>
>> using jdk 1.6_05, Tomcat 6.0.14 and Apache 1.3.39.
>>
>> Tomcat seems to be working fine on its own, as does
>> Apache. I installed the mod_jk connector according
>> to
>> documentation so much so that I eventually get the
>> log
>> message:
>>
>> [Tue Mar 25 21:32:19 2008] [32488:0] [info]
>> jk_init::mod_jk.c (2706): mod_jk/1.2.26 initialized
>>
>> I think the connector is fine. Accessing my tomcat
>> app
>> (running on port 8080) doesn't seem to work, though.
>> I
>> read I still have to change the server.xml of Tomcat
>> and find an example:
>>
>> <Connector port="15409" protocol="AJP/1.3" />
>>
>> Is that all? And which port do I use?
>>
>> Thanks in advance!
>> Charl
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk connecor settings in server.xml?
Posted by Charl Gerber <ch...@yahoo.com>.
OK, my worker.properties:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
and in my server.xml:
<Connector port="8009" protocol="AJP/1.3"
redirectPort="8443" />
The latter I did not add, it was there by default
after I installed tomcat. In fact, I didn't change
anything in server.xml, its the default installed
version. My war is deployed by just dumping the .war
in the webapps dit and I can access it using url:
localhost:8080/myapp/index.html
No errors are reported, but my tomcat app is just not
reached via apache. The connector is still not
working.
Added mod configuration:
LoadModule jk_module
/usr/local/apache/libexec/mod_jk-1.2.26-httpd-1.3.39-eapi.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile /usr/local/apache/logs/mod_jk.shm
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /myapp/* worker1
Can anyone spot errors here? The paths are all valid,
triple-checked those.
Thanks.
--- Charl Gerber <ch...@yahoo.com> wrote:
> Hi,
>
> using jdk 1.6_05, Tomcat 6.0.14 and Apache 1.3.39.
>
> Tomcat seems to be working fine on its own, as does
> Apache. I installed the mod_jk connector according
> to
> documentation so much so that I eventually get the
> log
> message:
>
> [Tue Mar 25 21:32:19 2008] [32488:0] [info]
> jk_init::mod_jk.c (2706): mod_jk/1.2.26 initialized
>
> I think the connector is fine. Accessing my tomcat
> app
> (running on port 8080) doesn't seem to work, though.
> I
> read I still have to change the server.xml of Tomcat
> and find an example:
>
> <Connector port="15409" protocol="AJP/1.3" />
>
> Is that all? And which port do I use?
>
> Thanks in advance!
> Charl
>
>
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
mod_jk connecor settings in server.xml?
Posted by Charl Gerber <ch...@yahoo.com>.
Hi,
using jdk 1.6_05, Tomcat 6.0.14 and Apache 1.3.39.
Tomcat seems to be working fine on its own, as does
Apache. I installed the mod_jk connector according to
documentation so much so that I eventually get the log
message:
[Tue Mar 25 21:32:19 2008] [32488:0] [info]
jk_init::mod_jk.c (2706): mod_jk/1.2.26 initialized
I think the connector is fine. Accessing my tomcat app
(running on port 8080) doesn't seem to work, though. I
read I still have to change the server.xml of Tomcat
and find an example:
<Connector port="15409" protocol="AJP/1.3" />
Is that all? And which port do I use?
Thanks in advance!
Charl
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: APR based Apache Tomcat Native library
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Charl Gerber [mailto:charlgerber@yahoo.com]
> Subject: APR based Apache Tomcat Native library
>
> INFO: The APR based Apache Tomcat Native library which
> allows optimal performance in production environments
> was not found on the java.library.path:
>
> What's this and how do I fix it?
The easiest thing is to ignore it; note that it's an INFO, not a WARNING
or ERROR. If you want to go to the trouble, you can download and build
APR as documented here:
http://tomcat.apache.org/tomcat-6.0-doc/apr.html
If you just want the message to go away, then comment out the
AprLifecycleListener in conf/server.xml.
> and then all sorts of other exceptions in the
> application occurs. Looks like Tomcat is trying to
> initialize my application more than once?
You probably have an invalid <Context> element somewhere. In
particular, you must not be using the path and docBase attributes,
unless the <Context> element is in server.xml (very strongly
discouraged).
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: APR based Apache Tomcat Native library
Posted by Charl Gerber <ch...@yahoo.com>.
hmmm.
I reverted back to Tomcat 6.0.14 and everything is
solved. Same procedure as below and my applications
are now running fine. Still getting the APR message,
but at least my apps are running.
--- Charl Gerber <ch...@yahoo.com> wrote:
> I have just installed Tomcat 6.0.16 on Centos 5.0
> with
> Java 1.6_05. I made no customizations to the setups
> and deployed a .war file to the webapps directory of
> Tomcat.
>
> The first thing I see in the log files is:
>
> INFO: The APR based Apache Tomcat Native library
> which
> allows optimal performance in production
> environments
> was not found on the java.library.path:
>
> What's this and how do I fix it?
>
> The application also doesn't want to start, it
> seems:
>
> INFO: The listener "my.app.ApplicationListener" is
> already configured for this context. The duplicate
> definition has been ignored.
> Mar 24, 2008 8:52:15 PM
> org.apache.catalina.core.StandardContext
> addApplicationListener
>
> and then all sorts of other exceptions in the
> application occurs. Looks like Tomcat is trying to
> initialize my application more than once?
>
> Charl
>
>
>
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
APR based Apache Tomcat Native library
Posted by Charl Gerber <ch...@yahoo.com>.
I have just installed Tomcat 6.0.16 on Centos 5.0 with
Java 1.6_05. I made no customizations to the setups
and deployed a .war file to the webapps directory of
Tomcat.
The first thing I see in the log files is:
INFO: The APR based Apache Tomcat Native library which
allows optimal performance in production environments
was not found on the java.library.path:
What's this and how do I fix it?
The application also doesn't want to start, it seems:
INFO: The listener "my.app.ApplicationListener" is
already configured for this context. The duplicate
definition has been ignored.
Mar 24, 2008 8:52:15 PM
org.apache.catalina.core.StandardContext
addApplicationListener
and then all sorts of other exceptions in the
application occurs. Looks like Tomcat is trying to
initialize my application more than once?
Charl
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Memory allocation
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Charl Gerber [mailto:charlgerber@yahoo.com]
> Subject: Re: Memory allocation
>
> How much memory will Tomcat be allocated on default?
Start here:
http://java.sun.com/javase/technologies/hotspot/gc/index.jsp
One of the links from the above page is short and sweet:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Memory allocation
Posted by Charl Gerber <ch...@yahoo.com>.
I'm using JDK 1.6_05, downloaded from sun.java.com.
And Tomcat 6.0.16, downloaded from apache website.
How much memory will Tomcat be allocated on default?
--- Gabe Wong <ga...@ngasi.com> wrote:
> Charl Gerber wrote:
> > Hi,
> >
> > I'm setting up a Centos 5 server with Apache,
> MySQL
> > and Tomcat 6 (jre 1.6). I think we have joomla on
> it
> > as well. The machine will be used purely as a
> > webserver running a tomcat app and maybe some
> static
> > html from the apache server. Quite a bit of
> > interaction with the MySQL server will be done. We
> > have 2GB of memory in the machine. How much should
> I
> > allocate to Tomcat and where/how do I do it? I
> suspect
> > in the catalina.sh file? I am pretty new to
> managing a
> > linux machine, so I am not familiar with the
> > configurations.
> >
> > We'd like to optimize Tomcat's performance, but
> > obviously need to find a balance where MySQL and
> > Apache will have enough memory too. We don't have
> many
> > hard stats about connections expected etc, so we
> want
> > to start with a default configuration and memory
> > allocation that will ensure all apps involved will
> > have a decent chunk of the memory to work with,
> but
> > not too little or too much.
> >
> > Thanks!
> >
> > Charl
> >
> Hi Carl,
> First thing,
> Are you using a JDK and/or Tomcat distribution from
> the Centos repository?
> If not please download and install the JDK from
> java.sun.com and
> download and install Tomcat from tomcat.apache.org.
>
> Using the default configuration, is a good starting
> point to determine
> the optimized settings as you do not presently have
> any metrics.
> Depending, then you could increase the memory
> allocation.
>
> --
> Regards
>
> Gabe Wong
> NGASI AppServer Manager
> JAVA AUTOMATION and SaaS Enablement
> http://www.ngasi.com
> NEW! 8.0 - Centrally manage multiple physical
> servers
>
>
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Memory allocation
Posted by Gabe Wong <ga...@ngasi.com>.
Charl Gerber wrote:
> Hi,
>
> I'm setting up a Centos 5 server with Apache, MySQL
> and Tomcat 6 (jre 1.6). I think we have joomla on it
> as well. The machine will be used purely as a
> webserver running a tomcat app and maybe some static
> html from the apache server. Quite a bit of
> interaction with the MySQL server will be done. We
> have 2GB of memory in the machine. How much should I
> allocate to Tomcat and where/how do I do it? I suspect
> in the catalina.sh file? I am pretty new to managing a
> linux machine, so I am not familiar with the
> configurations.
>
> We'd like to optimize Tomcat's performance, but
> obviously need to find a balance where MySQL and
> Apache will have enough memory too. We don't have many
> hard stats about connections expected etc, so we want
> to start with a default configuration and memory
> allocation that will ensure all apps involved will
> have a decent chunk of the memory to work with, but
> not too little or too much.
>
> Thanks!
>
> Charl
>
Hi Carl,
First thing,
Are you using a JDK and/or Tomcat distribution from the Centos repository?
If not please download and install the JDK from java.sun.com and
download and install Tomcat from tomcat.apache.org.
Using the default configuration, is a good starting point to determine
the optimized settings as you do not presently have any metrics.
Depending, then you could increase the memory allocation.
--
Regards
Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.0 - Centrally manage multiple physical servers
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org