You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "L. Yeung" <l_...@yahoo.com> on 2001/12/08 11:55:16 UTC

Tomcat + Struts in Production Environment

Hi All! Just a little intro about my work and myself.
I'm   the only employee of a startup software company
writing database solutions. I'm told to write an
application for POS, invoicing and inventory modules
that should scale for around less than 30k but greater
than 10k transactions per day. I'm using MYSQL and
JavaBeans+JDBC solution for database retrievals. For
my backend modules (invoicing and inventory), I wrote
them using struts framework and displays the
information in HTML. For my frontend module (POS), I'm
thinking of writing a "rich client" application and
possibly deployed using Java Web Start. I'm almost
through with the backend modules except for minor bugs
and tweaks. Now my question is this, without EJBs,
will my servlet/jsp/struts solution scale for 10k-30k
transactions per day? Do you think the overall
penalty/overhead for my JDBC connection will degrade
the entire performance? Is there any way for me to use
connection pooling without EJB? Or should I migrate my
javabeans to EJB?

Thanks in advance.

Regards,
L. Yeung

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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


Re: Tomcat + Struts in Production Environment

Posted by Sean Owen <sr...@yahoo.com>.
Regarding Struts's scalability, I don't think that it will be the bottleneck
in your application by far. We have successfully used Struts on a site that
handles 1,000+ transactions per minute, so even 100,000 a day is no sweat
for Struts itself.

I think it's your DB that will be the bottleneck, so make sure you are using
a connection pool, etc. Connection pooling is not an EJB thing only, it's
something provided by your server.

One other thing... heavy use of JSP tag libraries can noticeably degrade
performance. One forgets how much code they generate. We generally use only
the "html" and "template" tags since they are most useful. You can get away
without "bean" and "logic" in many cases.


Sean


----- Original Message -----
From: "L. Yeung" <l_...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, December 08, 2001 10:55 AM
Subject: Tomcat + Struts in Production Environment


> Hi All! Just a little intro about my work and myself.
> I'm   the only employee of a startup software company
> writing database solutions. I'm told to write an
> application for POS, invoicing and inventory modules
> that should scale for around less than 30k but greater
> than 10k transactions per day. I'm using MYSQL and
> JavaBeans+JDBC solution for database retrievals. For
> my backend modules (invoicing and inventory), I wrote
> them using struts framework and displays the
> information in HTML. For my frontend module (POS), I'm
> thinking of writing a "rich client" application and
> possibly deployed using Java Web Start. I'm almost
> through with the backend modules except for minor bugs
> and tweaks. Now my question is this, without EJBs,
> will my servlet/jsp/struts solution scale for 10k-30k
> transactions per day? Do you think the overall
> penalty/overhead for my JDBC connection will degrade
> the entire performance? Is there any way for me to use
> connection pooling without EJB? Or should I migrate my
> javabeans to EJB?
>
> Thanks in advance.
>
> Regards,
> L. Yeung
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Re: Tomcat + Struts in Production Environment

Posted by "L. Yeung" <l_...@yahoo.com>.
--- Vic Cekvenich <vi...@basebeans.com> wrote:
> > Hi All! Just a little intro about my work and
> myself.
> > I'm   the only employee of a startup software
> company
> > writing database solutions. I'm told to write an
> > application for POS, invoicing and inventory
> modules
> > that should scale for around less than 30k but
> greater
> > than 10k transactions per day. I'm using MYSQL and
> 
> 
> Instead of MySQL, Consider PostgreSQL for volume of
> about 2K per hour. 
> Also consider Mylex SCSI caching controller or
> similar (check tpc.org 
> for ratings). The bottle-neck is almost always the
> DB so place your 
> concern there. You can always do a stress test to
> generate X number of 
> transactions per hour with the first page you
> develop. I use the 
> Microsoft Stress test tool, it is free. (MS is good
> at generating stress).
> 

Isn't PostreSQL much slower than MYSQL? But I think it
has nice features which MYSQL doesn't have. 

> 
> > JavaBeans+JDBC solution for database retrievals.
> For
> > my backend modules (invoicing and inventory), I
> wrote
> > them using struts framework and displays the
> > information in HTML. For my frontend module (POS),
> I'm
> > thinking of writing a "rich client" application
> and
> > possibly deployed using Java Web Start. 
> 
> 
> 
> >I'm almost
> > through with the backend modules except for minor
> bugs
> > and tweaks. Now my question is this, without EJBs,
> > will my servlet/jsp/struts solution scale for
> 10k-30k
> > transactions per day? 
> 
> 
> Which do you think is faster under load: JavaBeans
> or EJBs? Why do you 
> think that?

I think the advantage of using EJB is that the App
Server has connection pooling. And AppServers supports
caches (??)

> 
> >Do you think the overall
> > penalty/overhead for my JDBC connection will
> degrade
> > the entire performance? Is there any way for me to
> use
> > connection pooling without EJB? 
> 
> 
> It depends. Do they connect and do a lot of work? Or
> connect, do one 
> thing and go away. Any J2EE app. server has
> connection pooling, it is 
> required to be a J2EE standard. Or you can use
> CodeStudio.com for 
> pooling. It is free.
> 

Yeah it connects a lot, for catalog retrievals and
could possible have many inserts (especially in POS
module). I need to write an non-EJB components for the
mean time. But I need to make it portable to EJB if
the transaction baloons up thrice as much. 

> >Or should I migrate my
> > javabeans to EJB?
>  
> 
> 
> 
> > Thanks in advance.
> > 
> > Regards,
> > L. Yeung
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Send your FREE holiday greetings online!
> > http://greetings.yahoo.com
> > 
> > --
> > 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>
> 


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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


Re: Tomcat + Struts in Production Environment

Posted by Vic Cekvenich <vi...@basebeans.com>.
> Hi All! Just a little intro about my work and myself.
> I'm   the only employee of a startup software company
> writing database solutions. I'm told to write an
> application for POS, invoicing and inventory modules
> that should scale for around less than 30k but greater
> than 10k transactions per day. I'm using MYSQL and


Instead of MySQL, Consider PostgreSQL for volume of about 2K per hour. 
Also consider Mylex SCSI caching controller or similar (check tpc.org 
for ratings). The bottle-neck is almost always the DB so place your 
concern there. You can always do a stress test to generate X number of 
transactions per hour with the first page you develop. I use the 
Microsoft Stress test tool, it is free. (MS is good at generating stress).


> JavaBeans+JDBC solution for database retrievals. For
> my backend modules (invoicing and inventory), I wrote
> them using struts framework and displays the
> information in HTML. For my frontend module (POS), I'm
> thinking of writing a "rich client" application and
> possibly deployed using Java Web Start. 



>I'm almost
> through with the backend modules except for minor bugs
> and tweaks. Now my question is this, without EJBs,
> will my servlet/jsp/struts solution scale for 10k-30k
> transactions per day? 


Which do you think is faster under load: JavaBeans or EJBs? Why do you 
think that?

>Do you think the overall
> penalty/overhead for my JDBC connection will degrade
> the entire performance? Is there any way for me to use
> connection pooling without EJB? 


It depends. Do they connect and do a lot of work? Or connect, do one 
thing and go away. Any J2EE app. server has connection pooling, it is 
required to be a J2EE standard. Or you can use CodeStudio.com for 
pooling. It is free.

>Or should I migrate my
> javabeans to EJB?
 



> Thanks in advance.
> 
> Regards,
> L. Yeung
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> 
> --
> 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>