You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "G. Balandres" <G....@gmx.net> on 2002/12/13 10:29:25 UTC

Tomcat for Enterprise Applications

Hi all,

i have currently an dicussion going on about creating 
a 3/Multi Tier Enterprise Application which will
have one Webbased Client and one Standalone Client.
The main aim is the Webbased Client.

The problem is there are some workers which want to
use .NET and some who want to use J2EE.
I dont want to start something like a flame war here.
I just want to find out if we could use the Tomcat 
server and/or other Open Source Projects to 
develop our Application because i dont want 
to go the .NET way.
The application would be a middle to big size
CRM system.

So what we will need is an Application Server which
can handle EJB's. Even too it should be scalable in a way
that you can split parts of your application about
several servers which are working together in a network
environment.
As far as i have found out until now Tomcat can't do 
that things. Some people told me that Tomcat only implements
some J2EE standards.
I havent found a site on apache.org (Jakarta Side) that
explains what Tomcat can do and what it cant.
Anybody has one?

Can Tomcat work together with other Applications
that integrate the functions that Tomcat doesnt have
but are needed for J2EE Applications?

So as far as i can see now. Tomcat is good for some 
mainly Webbased applications which are using Servlets 
but i cant see in which productive environments it is
used. Could anybody tell me in what kind of projects 
you did use it?

And now there is another question which doesnt really
belong to this Mailinglist. But if i am here ... =)
So if Tomcat cant be used to create Enterprise Applications
which are mostly using EJB's and should be scalable on the server
side what other ways are there. I've heard about other
Open Source J2EE Application Servers and then there are the 
commercial Servers like Websphere and so on.
I've surley read books about J2EE but none of them didnt 
give much information about the diffrent application servers
for J2EE. So i know some stuff about programming J2EE applications
but not much about how to implement them on the server side.
Any suggestions on that?


Thank you for reading my stuff and if you have any idea about
my questions any answer would be highly appreciated.

Thanks and Greetings,
G. Balandres

--

Even god is a Programmer:
while heartIsBumping()  {
  /* Many
     Cases and If-Else Routines
     which ends with 
     exit	    	
  */
  	
  doLive()  
}








--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

Posted by Jeremy Joslin <je...@spotlife.com>.
The -X VM options will work with Sun VM's, your mileage may vary when used
with others.  You can read all about it here:
http://java.sun.com/docs/hotspot/VMOptions.html

Jeremy

> -----Original Message-----
> From: Ming Zhao [mailto:flying_minger@yahoo.com]
> Sent: Monday, December 16, 2002 10:19 AM
> To: Tomcat Users List
> Subject: RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
> 
> Can it work on Win2k? Thanks,
> 
> --- Luc Santeramo <lu...@univ-avignon.fr>
> wrote:
> > Hi,
> >
> > there is a way to limit memory use by tomcat
> > just specify it in your CATALINA_OPTS env var
> > here is mine
> > CATALINA_OPTS="-server -Xmx220m -Xms220m
> > -Dfile.encoding=UTF-8"
> >
> > these are jvm parameter I think
> > Xmx is the max mem to use and Xms is the min
> >
> > hope this helps
> >
> > Luc
> >
> > At 11:03 13/12/2002  +0100, Marco Bucciarelli wrote:
> > >Hi, I have also this problem/doubt: how to limit
> > the number of threads
> > >opened by Tomcat?
> > >I tried to change a lot of settings in server.xml
> > but nothing influenced
> > >that number.
> > >I have always 46 new java processes opened by
> > Tomcat.
> > >
> > >I did this test (Linux RedHat 7.0, Tomcat 4.1.12,
> > Apache 1.3.12, Sun JDK
> > >1.4.1_01):
> > >- reboot the machine, with tomcat service disabled
> > at startup
> > >- the free command gives me 221.196Kb of memory
> > free (Total 256Mk)
> > >- start tomcat
> > >- I found 46 new java processes
> > >- the top command says that every process uses 56Mb
> > of RAM
> > >- the free command now gives me 44.436Kb free
> > >
> > >All this without accessing to Apache or Tomcat,
> > only before and after the
> > >start of Tomcat!
> > >
> > >Of course I do not have a memory usage of 46*56Mb,
> > but I do not have only
> > >56Mb of RAM used by Tomcat (after the start I have
> > only 44Mb of memory free,
> > >before the start I had 220Mb free).
> > >
> > >What is happening?
> > >
> > >Bye,
> > >Marco.
> > >
> > >
> > >From: "Galbayar"
> > >Subject:  Re: Tomcat using VERY LARGE Memory
> > (URGENT!!!!!!!!!)
> > >Date:  Tue, 12 Mar 2002 10:26:21 +0800
> > >
> > >it is top result and every java process using 59M
> > RAM
> > >i'm use mod_jk integrated Tomcat with Apache and
> > Tomcat
> > >top result is :
> > >
> > >
> > >110 processes: 109 sleeping, 1 running, 0 zombie, 0
> > stopped
> > >CPU states:  2.3% user,  1.9% system,  0.0% nice,
> > 95.6% idle
> > >Mem:  1028860K av,  938924K used,   89936K free,
> >  116K shrd,
> > >139628K
> > >buff
> > >Swap: 1020116K av,       0K used, 1020116K free
> > >680228K
> > >cached
> > >
> > >   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU
> > %MEM   TIME
> > >COMMAND
> > >17862 root      15   0  1092 1092   836 R     1.7
> > 0.1   0:00 top
> > >17293 root      13   0 28176  59M  9576 S     1.5
> > 2.7   0:01 java
> > >17272 root      10   0 28176  59M  9576 S     0.1
> > 2.7   0:02 java
> > >
> > >and see MEM usage total RAM is 1028860K  938924K
> > used,   89936K free
> > >
> > >
> > >----- Original Message -----
> > >From: "Filip Hanik" <ma...@filip.net>
> > >To: "Tomcat Users List"
> > <to...@jakarta.apache.org>
> > >Sent: Tuesday, March 12, 2002 10:14
> > >Subject: RE: Tomcat using VERY LARGE Memory
> > (URGENT!!!!!!!!!)
> > >
> > >
> > > > what you are seeing is that "ps" or "top" lists
> > one process for
> > >each
> > >thread
> > > > in Tomcat.
> > > > your tomcat is running 59M all together
> > > >
> > > > Filip
> > > >
> > > > ~
> > > > Namaste - I bow to the divine in you
> > > > ~
> > > > Filip Hanik
> > > > Software Architect
> > > > filip@filip.net
> > > > www.filip.net
> > > >
> > > > >-----Original Message-----
> > > > >From: Galbayar [mailto:galbayar@mobicom.mn]
> > > > >Sent: Monday, March 11, 2002 6:04 PM
> > > > >To: Tomcat Users List
> > > > >Subject: Tomcat using VERY LARGE Memory
> > (URGENT!!!!!!!!!)
> > > > >
> > > > >
> > > > >Hello all
> > > > >Here is part of top output. Is it usual that
> > java
> > > > >processes eat all of memory? ? At now there are
> > 50 java
> > >processes started
> > > > >that running tomcat and each of them uses 59M
> > memory. There
> > >is running
> > > > >apache
> > > > >server with tomcat 4 and mysql. OS is Redhat7.2
> > x86 . JDK
> > >1.4 is
> > >installed.
> > > > >how to solve this problem?
> > > > >
> > > > >106 processes: 105 sleeping, 1 running, 0
> > zombie, 0 stopped
> > > > >CPU states: 0.3% user, 3.4% system, 0.0% nice,
> > 96.1% idle
> > > > >Mem: 1028860K av, 1022352K used, 6508K free,
> > 116K shrd,
> > >129004K buff
> > > > >wap: 1020116K av, 0K used, 1020116K free
> > 762320K cached
> > > > >
> > > > >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03
> > java
> > > > >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00
> > java
> > > > >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35
> > java
> > > > >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> > java
> > > > >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01
> > java
> > > > >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> > java
> > > > >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> > java
> > > > >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> > java
> > > > >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03
> > java
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe:   <mailto:tomcat-user-
> > >unsubscribe@jakarta.apache.org>
> > > > For additional commands: <mailto:tomcat-user-
> > >help@jakarta.apache.org>
> > > > Troubles with the list: <mailto:tomcat-user-
> > >owner@jakarta.apache.org>
> > > >
> > > >
> > > >
> > >
> > >
> > >--
> > >To unsubscribe:   <mailto:tomcat-user-
> > >unsubscribe@jakarta.apache.org>
> > >For additional commands: <mailto:tomcat-user-
> > >help@jakarta.apache.org>
> > >Troubles with the list: <mailto:tomcat-user-
> > >owner@jakarta.apache.org>
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > >For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> === message truncated ===
> 
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-
> help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

Posted by Ming Zhao <fl...@yahoo.com>.
Can it work on Win2k? Thanks,

--- Luc Santeramo <lu...@univ-avignon.fr>
wrote:
> Hi,
> 
> there is a way to limit memory use by tomcat
> just specify it in your CATALINA_OPTS env var
> here is mine
> CATALINA_OPTS="-server -Xmx220m -Xms220m
> -Dfile.encoding=UTF-8"
> 
> these are jvm parameter I think
> Xmx is the max mem to use and Xms is the min
> 
> hope this helps
> 
> Luc
> 
> At 11:03 13/12/2002  +0100, Marco Bucciarelli wrote:
> >Hi, I have also this problem/doubt: how to limit
> the number of threads
> >opened by Tomcat?
> >I tried to change a lot of settings in server.xml
> but nothing influenced
> >that number.
> >I have always 46 new java processes opened by
> Tomcat.
> >
> >I did this test (Linux RedHat 7.0, Tomcat 4.1.12,
> Apache 1.3.12, Sun JDK
> >1.4.1_01):
> >- reboot the machine, with tomcat service disabled
> at startup
> >- the free command gives me 221.196Kb of memory
> free (Total 256Mk)
> >- start tomcat
> >- I found 46 new java processes
> >- the top command says that every process uses 56Mb
> of RAM
> >- the free command now gives me 44.436Kb free
> >
> >All this without accessing to Apache or Tomcat,
> only before and after the
> >start of Tomcat!
> >
> >Of course I do not have a memory usage of 46*56Mb,
> but I do not have only
> >56Mb of RAM used by Tomcat (after the start I have
> only 44Mb of memory free,
> >before the start I had 220Mb free).
> >
> >What is happening?
> >
> >Bye,
> >Marco.
> >
> >
> >From: "Galbayar"
> >Subject:  Re: Tomcat using VERY LARGE Memory
> (URGENT!!!!!!!!!)
> >Date:  Tue, 12 Mar 2002 10:26:21 +0800
> >
> >it is top result and every java process using 59M
> RAM
> >i'm use mod_jk integrated Tomcat with Apache and
> Tomcat
> >top result is :
> >
> >
> >110 processes: 109 sleeping, 1 running, 0 zombie, 0
> stopped
> >CPU states:  2.3% user,  1.9% system,  0.0% nice,
> 95.6% idle
> >Mem:  1028860K av,  938924K used,   89936K free,   
>  116K shrd,
> >139628K
> >buff
> >Swap: 1020116K av,       0K used, 1020116K free
> >680228K
> >cached
> >
> >   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU
> %MEM   TIME
> >COMMAND
> >17862 root      15   0  1092 1092   836 R     1.7 
> 0.1   0:00 top
> >17293 root      13   0 28176  59M  9576 S     1.5 
> 2.7   0:01 java
> >17272 root      10   0 28176  59M  9576 S     0.1 
> 2.7   0:02 java
> >
> >and see MEM usage total RAM is 1028860K  938924K
> used,   89936K free
> >
> >
> >----- Original Message -----
> >From: "Filip Hanik" <ma...@filip.net>
> >To: "Tomcat Users List"
> <to...@jakarta.apache.org>
> >Sent: Tuesday, March 12, 2002 10:14
> >Subject: RE: Tomcat using VERY LARGE Memory
> (URGENT!!!!!!!!!)
> >
> >
> > > what you are seeing is that "ps" or "top" lists
> one process for
> >each
> >thread
> > > in Tomcat.
> > > your tomcat is running 59M all together
> > >
> > > Filip
> > >
> > > ~
> > > Namaste - I bow to the divine in you
> > > ~
> > > Filip Hanik
> > > Software Architect
> > > filip@filip.net
> > > www.filip.net
> > >
> > > >-----Original Message-----
> > > >From: Galbayar [mailto:galbayar@mobicom.mn]
> > > >Sent: Monday, March 11, 2002 6:04 PM
> > > >To: Tomcat Users List
> > > >Subject: Tomcat using VERY LARGE Memory
> (URGENT!!!!!!!!!)
> > > >
> > > >
> > > >Hello all
> > > >Here is part of top output. Is it usual that
> java
> > > >processes eat all of memory? ? At now there are
> 50 java
> >processes started
> > > >that running tomcat and each of them uses 59M
> memory. There
> >is running
> > > >apache
> > > >server with tomcat 4 and mysql. OS is Redhat7.2
> x86 . JDK
> >1.4 is
> >installed.
> > > >how to solve this problem?
> > > >
> > > >106 processes: 105 sleeping, 1 running, 0
> zombie, 0 stopped
> > > >CPU states: 0.3% user, 3.4% system, 0.0% nice,
> 96.1% idle
> > > >Mem: 1028860K av, 1022352K used, 6508K free,
> 116K shrd,
> >129004K buff
> > > >wap: 1020116K av, 0K used, 1020116K free
> 762320K cached
> > > >
> > > >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03
> java
> > > >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00
> java
> > > >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35
> java
> > > >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> java
> > > >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01
> java
> > > >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> java
> > > >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> java
> > > >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00
> java
> > > >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03
> java
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-
> >unsubscribe@jakarta.apache.org>
> > > For additional commands: <mailto:tomcat-user-
> >help@jakarta.apache.org>
> > > Troubles with the list: <mailto:tomcat-user-
> >owner@jakarta.apache.org>
> > >
> > >
> > >
> >
> >
> >--
> >To unsubscribe:   <mailto:tomcat-user-
> >unsubscribe@jakarta.apache.org>
> >For additional commands: <mailto:tomcat-user-
> >help@jakarta.apache.org>
> >Troubles with the list: <mailto:tomcat-user-
> >owner@jakarta.apache.org>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
=== message truncated ===


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

Posted by Luc Santeramo <lu...@univ-avignon.fr>.
Hi,

there is a way to limit memory use by tomcat
just specify it in your CATALINA_OPTS env var
here is mine
CATALINA_OPTS="-server -Xmx220m -Xms220m -Dfile.encoding=UTF-8"

these are jvm parameter I think
Xmx is the max mem to use and Xms is the min

hope this helps

Luc

At 11:03 13/12/2002  +0100, Marco Bucciarelli wrote:
>Hi, I have also this problem/doubt: how to limit the number of threads
>opened by Tomcat?
>I tried to change a lot of settings in server.xml but nothing influenced
>that number.
>I have always 46 new java processes opened by Tomcat.
>
>I did this test (Linux RedHat 7.0, Tomcat 4.1.12, Apache 1.3.12, Sun JDK
>1.4.1_01):
>- reboot the machine, with tomcat service disabled at startup
>- the free command gives me 221.196Kb of memory free (Total 256Mk)
>- start tomcat
>- I found 46 new java processes
>- the top command says that every process uses 56Mb of RAM
>- the free command now gives me 44.436Kb free
>
>All this without accessing to Apache or Tomcat, only before and after the
>start of Tomcat!
>
>Of course I do not have a memory usage of 46*56Mb, but I do not have only
>56Mb of RAM used by Tomcat (after the start I have only 44Mb of memory free,
>before the start I had 220Mb free).
>
>What is happening?
>
>Bye,
>Marco.
>
>
>From: "Galbayar"
>Subject:  Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
>Date:  Tue, 12 Mar 2002 10:26:21 +0800
>
>it is top result and every java process using 59M RAM
>i'm use mod_jk integrated Tomcat with Apache and Tomcat
>top result is :
>
>
>110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
>CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
>Mem:  1028860K av,  938924K used,   89936K free,     116K shrd,
>139628K
>buff
>Swap: 1020116K av,       0K used, 1020116K free
>680228K
>cached
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME
>COMMAND
>17862 root      15   0  1092 1092   836 R     1.7  0.1   0:00 top
>17293 root      13   0 28176  59M  9576 S     1.5  2.7   0:01 java
>17272 root      10   0 28176  59M  9576 S     0.1  2.7   0:02 java
>
>and see MEM usage total RAM is 1028860K  938924K used,   89936K free
>
>
>----- Original Message -----
>From: "Filip Hanik" <ma...@filip.net>
>To: "Tomcat Users List" <to...@jakarta.apache.org>
>Sent: Tuesday, March 12, 2002 10:14
>Subject: RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
>
>
> > what you are seeing is that "ps" or "top" lists one process for
>each
>thread
> > in Tomcat.
> > your tomcat is running 59M all together
> >
> > Filip
> >
> > ~
> > Namaste - I bow to the divine in you
> > ~
> > Filip Hanik
> > Software Architect
> > filip@filip.net
> > www.filip.net
> >
> > >-----Original Message-----
> > >From: Galbayar [mailto:galbayar@mobicom.mn]
> > >Sent: Monday, March 11, 2002 6:04 PM
> > >To: Tomcat Users List
> > >Subject: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
> > >
> > >
> > >Hello all
> > >Here is part of top output. Is it usual that java
> > >processes eat all of memory? ? At now there are 50 java
>processes started
> > >that running tomcat and each of them uses 59M memory. There
>is running
> > >apache
> > >server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK
>1.4 is
>installed.
> > >how to solve this problem?
> > >
> > >106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
> > >CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
> > >Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
>129004K buff
> > >wap: 1020116K av, 0K used, 1020116K free 762320K cached
> > >
> > >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> > >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
> > >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
> > >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> > >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
> > >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> > >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> > >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> > >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> > >
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-
>unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-
>help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-
>owner@jakarta.apache.org>
> >
> >
> >
>
>
>--
>To unsubscribe:   <mailto:tomcat-user-
>unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-
>help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-
>owner@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

Posted by Marco Bucciarelli <mb...@edp-progetti.it>.
Hi, I have also this problem/doubt: how to limit the number of threads
opened by Tomcat?
I tried to change a lot of settings in server.xml but nothing influenced
that number.
I have always 46 new java processes opened by Tomcat.

I did this test (Linux RedHat 7.0, Tomcat 4.1.12, Apache 1.3.12, Sun JDK
1.4.1_01):
- reboot the machine, with tomcat service disabled at startup
- the free command gives me 221.196Kb of memory free (Total 256Mk)
- start tomcat
- I found 46 new java processes
- the top command says that every process uses 56Mb of RAM
- the free command now gives me 44.436Kb free

All this without accessing to Apache or Tomcat, only before and after the
start of Tomcat!

Of course I do not have a memory usage of 46*56Mb, but I do not have only
56Mb of RAM used by Tomcat (after the start I have only 44Mb of memory free,
before the start I had 220Mb free).

What is happening?

Bye,
Marco.


From: "Galbayar"
Subject:  Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
Date:  Tue, 12 Mar 2002 10:26:21 +0800

it is top result and every java process using 59M RAM
i'm use mod_jk integrated Tomcat with Apache and Tomcat
top result is :


110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
Mem:  1028860K av,  938924K used,   89936K free,     116K shrd,
139628K
buff
Swap: 1020116K av,       0K used, 1020116K free
680228K
cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME
COMMAND
17862 root      15   0  1092 1092   836 R     1.7  0.1   0:00 top
17293 root      13   0 28176  59M  9576 S     1.5  2.7   0:01 java
17272 root      10   0 28176  59M  9576 S     0.1  2.7   0:02 java

and see MEM usage total RAM is 1028860K  938924K used,   89936K free


----- Original Message -----
From: "Filip Hanik" <ma...@filip.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, March 12, 2002 10:14
Subject: RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)


> what you are seeing is that "ps" or "top" lists one process for
each
thread
> in Tomcat.
> your tomcat is running 59M all together
>
> Filip
>
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> filip@filip.net
> www.filip.net
>
> >-----Original Message-----
> >From: Galbayar [mailto:galbayar@mobicom.mn]
> >Sent: Monday, March 11, 2002 6:04 PM
> >To: Tomcat Users List
> >Subject: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
> >
> >
> >Hello all
> >Here is part of top output. Is it usual that java
> >processes eat all of memory? ? At now there are 50 java
processes started
> >that running tomcat and each of them uses 59M memory. There
is running
> >apache
> >server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK
1.4 is
installed.
> >how to solve this problem?
> >
> >106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
> >CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
> >Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
129004K buff
> >wap: 1020116K av, 0K used, 1020116K free 762320K cached
> >
> >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
> >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
> >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> >
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-
unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-
help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-
owner@jakarta.apache.org>
>
>
>


--
To unsubscribe:   <mailto:tomcat-user-
unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-
help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-
owner@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat for Enterprise Applications

Posted by Mike W-M <mi...@ward-murphy.co.uk>.
I'm currently working (independently!) with Oracle's BC4J application /
persistence framework (against a transactional MySQL database).
The framework is supposed to be client independent, and JDeveloper (with
which the framework comes) provides tools for generating / designing both
thick and thin-web-based clients against the same "backend logic
implementation".  (My quotes, not theirs!  I can't vouch for their clients
since I'm hand-coding my own JSPs - primarily because the wizard-created
JSPs didn't suit (and looked rubbish!) at the time (and I had enough to
learn)   - and basically using BC4J for managed persistence (in place of
EJBs).)

If you're at the stage where you're just learning that J2EE doesn't
necessarily mean EJBs (and that Tomcat doesn't support them!) then you've
got a pretty steep learning curve ahead of you.  I'd urge you to try to take
a generative or framework approach to building your application and NOT to
start trying to hand-code an enterprise app from scratch. [I suspect the
same is true of dotNet as well?]

I don't have a wide breadth of experience in Java - hopefully others will
have more to add - but I'd recommend you take a look at JDeveloper / BC4J
(It's low-cost, too!).

Mike.


----- Original Message -----
From: "Peng Tuck Kwok" <pe...@makmal.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, December 13, 2002 9:44 AM
Subject: Re: Tomcat for Enterprise Applications


Tomcat only does jsp/servlets, so if you are after EJB's then you need
something like Jboss, which also bundles tomcat for jsp/servlets or
jetty. Apparently Jboss is pretty good and a lot of people are happy
with it so you might want to look into it. You need to pay for the docs
though.

G. Balandres wrote:
> Hi all,
>
> i have currently an dicussion going on about creating
> a 3/Multi Tier Enterprise Application which will
> have one Webbased Client and one Standalone Client.
> The main aim is the Webbased Client.
snip.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat for Enterprise Applications

Posted by Peng Tuck Kwok <pe...@makmal.net>.
Tomcat only does jsp/servlets, so if you are after EJB's then you need 
something like Jboss, which also bundles tomcat for jsp/servlets or 
jetty. Apparently Jboss is pretty good and a lot of people are happy 
with it so you might want to look into it. You need to pay for the docs 
though.

G. Balandres wrote:
> Hi all,
> 
> i have currently an dicussion going on about creating 
> a 3/Multi Tier Enterprise Application which will
> have one Webbased Client and one Standalone Client.
> The main aim is the Webbased Client.
> 
> The problem is there are some workers which want to
> use .NET and some who want to use J2EE.
> I dont want to start something like a flame war here.
> I just want to find out if we could use the Tomcat 
> server and/or other Open Source Projects to 
> develop our Application because i dont want 
> to go the .NET way.
> The application would be a middle to big size
> CRM system.
> 
> So what we will need is an Application Server which
> can handle EJB's. Even too it should be scalable in a way
> that you can split parts of your application about
> several servers which are working together in a network
> environment.
> As far as i have found out until now Tomcat can't do 
> that things. Some people told me that Tomcat only implements
> some J2EE standards.
> I havent found a site on apache.org (Jakarta Side) that
> explains what Tomcat can do and what it cant.
> Anybody has one?
> 
> Can Tomcat work together with other Applications
> that integrate the functions that Tomcat doesnt have
> but are needed for J2EE Applications?
> 
> So as far as i can see now. Tomcat is good for some 
> mainly Webbased applications which are using Servlets 
> but i cant see in which productive environments it is
> used. Could anybody tell me in what kind of projects 
> you did use it?
> 
> And now there is another question which doesnt really
> belong to this Mailinglist. But if i am here ... =)
> So if Tomcat cant be used to create Enterprise Applications
> which are mostly using EJB's and should be scalable on the server
> side what other ways are there. I've heard about other
> Open Source J2EE Application Servers and then there are the 
> commercial Servers like Websphere and so on.
> I've surley read books about J2EE but none of them didnt 
> give much information about the diffrent application servers
> for J2EE. So i know some stuff about programming J2EE applications
> but not much about how to implement them on the server side.
> Any suggestions on that?
> 
> 
> Thank you for reading my stuff and if you have any idea about
> my questions any answer would be highly appreciated.
> 
> Thanks and Greetings,
> G. Balandres
> 
> --
> 
> Even god is a Programmer:
> while heartIsBumping()  {
>   /* Many
>      Cases and If-Else Routines
>      which ends with 
>      exit	    	
>   */
>   	
>   doLive()  
> }
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat for Enterprise Applications

Posted by Pae Choi <pa...@earthlink.net>.
> Hi all,
> 
> i have currently an dicussion going on about creating 
> a 3/Multi Tier Enterprise Application which will
> have one Webbased Client and one Standalone Client.
> The main aim is the Webbased Client.
> 

For the most(if not all)modern Enterprise Application is
based on the n-tier, a.k.a., muti-tier archtiecture. Sometimes,
we use the term, 3-tier architecture, but there ia a clear
seperation between the conventional 3-tier and mordern,
a.k.a., enhanced 3 tier, architectures.

>From that architectural sense, if your immediate goal
is bound to the client tier and web tier, a.k.a., presenation
tier( i.e., the other tiers, including business tier, ..., persistence
tier, are not issue nor focus here.), Tomcat will do just
fine for your immediate, specific need.


> The problem is there are some workers which want to
> use .NET and some who want to use J2EE.
> I dont want to start something like a flame war here.
> I just want to find out if we could use the Tomcat 
> server and/or other Open Source Projects to 
> develop our Application because i dont want 
> to go the .NET way.
> The application would be a middle to big size
> CRM system.
>

No need to fight with your colleagues. They are not your enemy.
If possible, all should be able to use whatever they prefer
to use. In that way, you can maintain ONE BIG HAPPY FAMILY
under the SAME UMBRELLAR.

Since XML is a W3C standard and more industries in global
environment adopting the XML based solution, I am sure
you are well awaring of the XML that can be an ideal solution
for you as well.

To wit, if you use the XML document whether you use it as
messaging payload and/or business document, you all can
use the technology each individual of your team prefers while
making everyone's work "interoperable" at the same time.

For example, take a look at the SOAP with Document-style,
not the RPC-style whch is starting to fade out from the
interoperable sense.

> So what we will need is an Application Server which
> can handle EJB's. Even too it should be scalable in a way
> that you can split parts of your application about
> several servers which are working together in a network
> environment.
> As far as i have found out until now Tomcat can't do 
> that things. Some people told me that Tomcat only implements
> some J2EE standards.
> I havent found a site on apache.org (Jakarta Side) that
> explains what Tomcat can do and what it cant.
> Anybody has one?
> 

Most of Java professioanls should be able to answer this
for you, including JBoss, OpenEJB, ... So that I am skipping
this.

> Can Tomcat work together with other Applications
> that integrate the functions that Tomcat doesnt have
> but are needed for J2EE Applications?
> 

Yes. For the Enterprise Application, the component-based
architecture should be one of your technical requirements.
>From that sense, you should consider the "frameworks" which
is a.k.a, architectural patterns. Then Tomcat will be one
of your frameworks and fits well in your component-based
architecture.

> So as far as i can see now. Tomcat is good for some 
> mainly Webbased applications which are using Servlets 
> but i cant see in which productive environments it is
> used. Could anybody tell me in what kind of projects 
> you did use it?
> 

For the reliability issue, I will recommend you to develop
a pilot or POC before dive into the production system. In
that way you can test more than one framework during the
early development process. (I am omitting the benefits
why you would do such). Tomcat can be one of those
framworks and you sure can get your own feeling during that
process.

> And now there is another question which doesnt really
> belong to this Mailinglist. But if i am here ... =)
> So if Tomcat cant be used to create Enterprise Applications
> which are mostly using EJB's and should be scalable on the server
> side what other ways are there. I've heard about other
> Open Source J2EE Application Servers and then there are the 
> commercial Servers like Websphere and so on.
> I've surley read books about J2EE but none of them didnt 
> give much information about the diffrent application servers
> for J2EE. So i know some stuff about programming J2EE applications
> but not much about how to implement them on the server side.
> Any suggestions on that?
>

For scalabilty, it is ideal to maintain the clear seperation, a.k.a,
loosely-coupled, in your architecture. Some commercial App Server
contain too much stuff from that sense. And you will need to have
multiple copies as well as license for that.

Since Tomcat is just for JSP/Servlet, it is one of ideal packages
that fits well in the component-based architecture. (Also, take a
look at the Load Balancing with Apache/HTTPd). To wit, the
mechanisms in this tier can communicate with other mechanisms --
a.k.a., "design patterns", whether they are in the business tier or
some other tier. This communciation can be accomplised in a various
ways. Also, they all can schooled together in a single host even
though they will not do much by keeping them all busy in switching
just the contexts or multiple hosts in the distributed enviroment.

Since n-tier architecture is not a topic you can cover in a single
message, I will let you discover more based on your needs.

> 
> Thank you for reading my stuff and if you have any idea about
> my questions any answer would be highly appreciated.
>

You are welcome. And good luck.
 
> Thanks and Greetings,
> G. Balandres
> 


Pae


> --
> 
> Even god is a Programmer:
> while heartIsBumping()  {
>   /* Many
>      Cases and If-Else Routines
>      which ends with 
>      exit     
>   */
>   
>   doLive()  
> }
> 

>From the technical point of view in developing the Enterprise
Application, god also can be an architect, OO modeler, etc.
This means that god is wearing the mutilpe hats if you can
consider the other viewpoints. :-)




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>