Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth 
knowledge finds the time to take a look at this issue):


I have an EAR file with two EJB3 entity beans and a web client WAR.
It can be found here:
http://www.informatik.fh-wiesbaden.de/~knauf/KomponentenArchitekturen2008/kuchenzutatstruts/KuchenZutatStruts.ear
On copying it to the deploy directory of JBoss, memory usage increases 
by 20 MB. On calling the first struts page 
(http://localhost:8080/KuchenZutatStrutsWeb/ - then click the link on 
the index page), memory usage increases by another 30 MB.
This happens with every redeploy, at least during normal 
developing/testing cycles, which means one redeploy every few minutes. 
If I wait on longer period until the next redeploy, memory usage might 
decrease again.
But after 5-10 redeploys without longer pauses between (which is normal 
when trying to find/fix bugs), the machine is constantly swapping, and 
the app is poorly slow.


I suspect a JBoss 5 problem, but as I have only very basic struts 
knowledge, I don't know enough about the internals to file a struts or 
jboss JIRA.


Thanks

Wolfgang Knauf

Wolfgang Knauf wrote:

Hi all,

I have a quite small Struts 2 application running on a JBoss 5.0GA.
It contains some EJB3 entity beans, an EJB3 session bean, a handful of 
struts actions and three JSPs.
After about 5 redeploys (I use JSR88), JBoss is consuming more and more 
memory (500MB) and thus getting poorly slow.

The system is Windows XP64, JDK 1.6, deployment from Eclipse 3.4/WTP 3.0.
All my other small apps don't show this behaviour, it happens only with 
struts 2.


Has anybody seen this behavior, and has any ideas?

Thanks

Wolfgang



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth 
knowledge finds the time to take a look at this issue):






On copying it to the deploy directory of JBoss, memory usage increases 
by 20 MB. On calling the first struts page 
(http://localhost:8080/KuchenZutatStrutsWeb/ - then click the link on 
the index page), memory usage increases by another 30 MB.


I have the same app in a JSF version (same ejb layer, but different web 
client), and there I did not have memory problems. So I would remove the 
ejb layer from the suspects list ;-).
With a plain WAR file, memory usage increases by 20MB on deploy, but 
only by 5 on calling the first page. So the maximum is not reached as 
quick as with the EAR file. But the same tendency can be seen: memory 
increases on each redeploy, and sometimes goes down, but mostly it is 
growing.


Wolfgang


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[S2] Exploding memory usage with JBoss5

2009-01-19 Thread Wolfgang Knauf

Hi all,

I have a quite small Struts 2 application running on a JBoss 5.0GA.
It contains some EJB3 entity beans, an EJB3 session bean, a handful of 
struts actions and three JSPs.
After about 5 redeploys (I use JSR88), JBoss is consuming more and more 
memory (500MB) and thus getting poorly slow.

The system is Windows XP64, JDK 1.6, deployment from Eclipse 3.4/WTP 3.0.
All my other small apps don't show this behaviour, it happens only with 
struts 2.


Has anybody seen this behavior, and has any ideas?

Thanks

Wolfgang


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] Exploding memory usage with JBoss5

2009-01-19 Thread dusty

Anyone seen this in Tomcat?



Wolfgang Knauf wrote:
 
 Hi all,
 
 I have a quite small Struts 2 application running on a JBoss 5.0GA.
 It contains some EJB3 entity beans, an EJB3 session bean, a handful of 
 struts actions and three JSPs.
 After about 5 redeploys (I use JSR88), JBoss is consuming more and more 
 memory (500MB) and thus getting poorly slow.
 The system is Windows XP64, JDK 1.6, deployment from Eclipse 3.4/WTP 3.0.
 All my other small apps don't show this behaviour, it happens only with 
 struts 2.
 
 Has anybody seen this behavior, and has any ideas?
 
 Thanks
 
 Wolfgang
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Exploding-memory-usage-with-JBoss5-tp21551351p21556224.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: RequestProcessor processPopulate heavily increases memory usage

2006-02-22 Thread willem . vermeer
Hi,
Thanks for your pointers.
It turns out that on *all* forms the enctype=multipart/form-data was set 
even though no file upload was taking place. This caused the commons 
multipart request handler to allocate huge amounts of memory (256K for 
each field on the form) for each form which never get released. I 'fixed' 
it by setting memFileSize to a low value (2K) 
Apparently the enctype was added to all forms to circumvent problems when 
chaining Struts actions.
Yes I know, I just started here one month ago and ugly skeletons keep 
falling out of the closet every day.
Thanks for your time,
Willem





Michael Jouravlev [EMAIL PROTECTED]
21/02/2006 20:08
Por favor, responda a Struts Users Mailing List
 
Para:   Struts Users Mailing List user@struts.apache.org
cc: 
Asunto: Re: RequestProcessor processPopulate heavily increases 
memory usage


Session-scoped form can affect memory footprint on the first load and
barely on update. He gets +30M on each load. I doubt that reasonably
designed session-scoped form can be at fault here. It would sit there,
but it would not grow that fast. There should be something else that
he allocates.

BTW, his log shows request-scoped form.

Willem, try to create an empty action/form pair and test it. I suppose
this is something that you create.

Michael.

On 2/21/06, Joe Germuska [EMAIL PROTECTED] wrote:
 Do you have a session scoped form with one or more FormFile
 properties?  Consider switching the scope to request, or
 alternatively, using the controller element to reduce the size of
 the in-memory file representation before the data is written to disk
 (see the memFileSize attribute described at
 
http://struts.apache.org/struts-action/userGuide/configuration.html#controller_config

 )

 Joe

 At 6:12 PM +0100 2/21/06, [EMAIL PROTECTED] wrote:
 Hi,
 
 Last week we migrated our Struts 1.0 application to 1.2.8. As far as we
 can tell, we correctly followed the migration steps inbetween.
 Since the migration we have noticed the following weird behaviour:
 upon submitting a form from a jsp to as struts form/action, the method
 processPopulate of RequestProcessor will increase memory usage on our
 windows box by some 30M for each call. Unfortunately, this extra memory 
is
 not freed, not even after waiting more than say one hour. After a few 
such
 requests, needless to say, this produces OutOfMemoryErrors.
 I pinpointed the memory usage to this method by setting
 log4j.logger.org.apache.struts=DEBUG in my log4j.properties. In the 
log,
 after form submission, the following info appears:
 
 DEBUG: RequestUtils.createActionForm.300 -  --
 [EMAIL PROTECTED] (21 feb 2006 17:59:31,156)
 DEBUG: RequestProcessor.processActionForm.327 -  Storing ActionForm 
bean
 instance in scope 'request' under attribute key 'incidentForm' (21 feb
 2006 17:59:31,156)
 DEBUG: RequestProcessor.processPopulate.793 -  Populating bean 
properties
 from this request (21 feb 2006 17:59:35,616)
 DEBUG: CommonsMultipartRequestHandler.getRepositoryPath.388 - File 
upload
 temp dir:
 C:\dev\workspace-reconstruct-hibernate\Attend\work\org\apache\jsp (21 
feb
 2006 17:59:35,772)
 
 What could be the cause of this excessive memory increase?
 
 Could it be that the entire Struts config is accidentally reloaded 
because
 of a problem in our configuration?
 
 Thanks,
 Willem

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread willem . vermeer
Hi,

Last week we migrated our Struts 1.0 application to 1.2.8. As far as we 
can tell, we correctly followed the migration steps inbetween.
Since the migration we have noticed the following weird behaviour:
upon submitting a form from a jsp to as struts form/action, the method 
processPopulate of RequestProcessor will increase memory usage on our 
windows box by some 30M for each call. Unfortunately, this extra memory is 
not freed, not even after waiting more than say one hour. After a few such 
requests, needless to say, this produces OutOfMemoryErrors.
I pinpointed the memory usage to this method by setting 
log4j.logger.org.apache.struts=DEBUG in my log4j.properties. In the log, 
after form submission, the following info appears:

DEBUG: RequestUtils.createActionForm.300 -  -- 
[EMAIL PROTECTED] (21 feb 2006 17:59:31,156) 
DEBUG: RequestProcessor.processActionForm.327 -  Storing ActionForm bean 
instance in scope 'request' under attribute key 'incidentForm' (21 feb 
2006 17:59:31,156) 
DEBUG: RequestProcessor.processPopulate.793 -  Populating bean properties 
from this request (21 feb 2006 17:59:35,616) 
DEBUG: CommonsMultipartRequestHandler.getRepositoryPath.388 - File upload 
temp dir: 
C:\dev\workspace-reconstruct-hibernate\Attend\work\org\apache\jsp (21 feb 
2006 17:59:35,772) 

What could be the cause of this excessive memory increase?

Could it be that the entire Struts config is accidentally reloaded because 
of a problem in our configuration?

Thanks,
Willem

Re: RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread Joe Germuska
Do you have a session scoped form with one or more FormFile 
properties?  Consider switching the scope to request, or 
alternatively, using the controller element to reduce the size of 
the in-memory file representation before the data is written to disk 
(see the memFileSize attribute described at 
http://struts.apache.org/struts-action/userGuide/configuration.html#controller_config 
)


Joe



At 6:12 PM +0100 2/21/06, [EMAIL PROTECTED] wrote:

Hi,

Last week we migrated our Struts 1.0 application to 1.2.8. As far as we
can tell, we correctly followed the migration steps inbetween.
Since the migration we have noticed the following weird behaviour:
upon submitting a form from a jsp to as struts form/action, the method
processPopulate of RequestProcessor will increase memory usage on our
windows box by some 30M for each call. Unfortunately, this extra memory is
not freed, not even after waiting more than say one hour. After a few such
requests, needless to say, this produces OutOfMemoryErrors.
I pinpointed the memory usage to this method by setting
log4j.logger.org.apache.struts=DEBUG in my log4j.properties. In the log,
after form submission, the following info appears:

DEBUG: RequestUtils.createActionForm.300 -  --
[EMAIL PROTECTED] (21 feb 2006 17:59:31,156)
DEBUG: RequestProcessor.processActionForm.327 -  Storing ActionForm bean
instance in scope 'request' under attribute key 'incidentForm' (21 feb
2006 17:59:31,156)
DEBUG: RequestProcessor.processPopulate.793 -  Populating bean properties
from this request (21 feb 2006 17:59:35,616)
DEBUG: CommonsMultipartRequestHandler.getRepositoryPath.388 - File upload
temp dir:
C:\dev\workspace-reconstruct-hibernate\Attend\work\org\apache\jsp (21 feb
2006 17:59:35,772)

What could be the cause of this excessive memory increase?

Could it be that the entire Struts config is accidentally reloaded because
of a problem in our configuration?

Thanks,
Willem



--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new.
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread Michael Jouravlev
Session-scoped form can affect memory footprint on the first load and
barely on update. He gets +30M on each load. I doubt that reasonably
designed session-scoped form can be at fault here. It would sit there,
but it would not grow that fast. There should be something else that
he allocates.

BTW, his log shows request-scoped form.

Willem, try to create an empty action/form pair and test it. I suppose
this is something that you create.

Michael.

On 2/21/06, Joe Germuska [EMAIL PROTECTED] wrote:
 Do you have a session scoped form with one or more FormFile
 properties?  Consider switching the scope to request, or
 alternatively, using the controller element to reduce the size of
 the in-memory file representation before the data is written to disk
 (see the memFileSize attribute described at
 http://struts.apache.org/struts-action/userGuide/configuration.html#controller_config
 )

 Joe

 At 6:12 PM +0100 2/21/06, [EMAIL PROTECTED] wrote:
 Hi,
 
 Last week we migrated our Struts 1.0 application to 1.2.8. As far as we
 can tell, we correctly followed the migration steps inbetween.
 Since the migration we have noticed the following weird behaviour:
 upon submitting a form from a jsp to as struts form/action, the method
 processPopulate of RequestProcessor will increase memory usage on our
 windows box by some 30M for each call. Unfortunately, this extra memory is
 not freed, not even after waiting more than say one hour. After a few such
 requests, needless to say, this produces OutOfMemoryErrors.
 I pinpointed the memory usage to this method by setting
 log4j.logger.org.apache.struts=DEBUG in my log4j.properties. In the log,
 after form submission, the following info appears:
 
 DEBUG: RequestUtils.createActionForm.300 -  --
 [EMAIL PROTECTED] (21 feb 2006 17:59:31,156)
 DEBUG: RequestProcessor.processActionForm.327 -  Storing ActionForm bean
 instance in scope 'request' under attribute key 'incidentForm' (21 feb
 2006 17:59:31,156)
 DEBUG: RequestProcessor.processPopulate.793 -  Populating bean properties
 from this request (21 feb 2006 17:59:35,616)
 DEBUG: CommonsMultipartRequestHandler.getRepositoryPath.388 - File upload
 temp dir:
 C:\dev\workspace-reconstruct-hibernate\Attend\work\org\apache\jsp (21 feb
 2006 17:59:35,772)
 
 What could be the cause of this excessive memory increase?
 
 Could it be that the entire Struts config is accidentally reloaded because
 of a problem in our configuration?
 
 Thanks,
 Willem

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-15 Thread Praveen Kumar
Hi
   
  you can use Jmeter or Jmap or JProbe tools to analyse the heap memory and 
objects memory
   
  I think it may help you 
   
  With Regards
  Praveen
   
  [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
I'm not sure I understand your gasps at my question. To extend on the that's 
like buying a truck asking them how much it will weight when you fill it up -- 
I can calculate the memory usage of the parts that I implement on behalf of my 
application itself. Obviously no one can speak to the size of the memory usage 
of the applications specific objects that I create, things, I put in session, 
etc. 

However, this isn't my question. My question seems answerable enough. I just 
want to know how much memory the struts framework tend to take up by itself, 
OR, alternately, what are the areas of memory usage to examine to decide such a 
thing. 

Is this really not easily determined? What would make it so hard to determine? 




--- On Tue 02/14, Dave Newton  [EMAIL PROTECTED]  wrote:
From: Dave Newton [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 14 Feb 2006 11:24:58 -0500
Subject: Re: memory usage

James Mitchell wrote: LOL! That's like buying a truck from Ford, and then 
asking them how much it will weigh when you fill it up.That's a better answer 
than mine; I was just gonna say 15K and call itday.Dave You don't code your 
Struts in 
assembly?!-To
 unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL 
PROTECTED]

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
 
 What are the most popular cars? Find out at Yahoo! Autos 

Re: memory usage

2006-02-14 Thread James Mitchell
LOL!  That's like buying a truck from Ford, and then asking them how  
much it will weigh when you fill it up.



--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx



On Feb 13, 2006, at 5:00 PM, [EMAIL PROTECTED] wrote:






Let me know if this is not a very good question.  I need to know  
roughly how much memory a struts application uses.


What is the equation?

  framework objects + application actions and forms + ??

My java classes that represent my business logic won't be in memory  
until an action executes .  . . correct?




___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-14 Thread Dave Newton
James Mitchell wrote:
 LOL!  That's like buying a truck from Ford, and then asking them how
 much it will weigh when you fill it up.
That's a better answer than mine; I was just gonna say 15K and call it
day.

Dave You don't code your Struts in assembly?!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-14 Thread [EMAIL PROTECTED]

I'm not sure I understand your gasps at my question.  To extend on the that's 
like buying a truck asking them how much it will weight when you fill it up -- 
I can calculate the memory usage of the parts that I implement on behalf of my 
application itself.  Obviously no one can speak to the size of the memory usage 
of the applications specific objects that I create, things, I put in session, 
etc.   

However, this isn't my question.  My question seems answerable enough.  I just 
want to know how much memory the struts framework tend to take up by itself, 
OR, alternately, what are the areas of memory usage to examine to decide such a 
thing.  

Is this really not easily determined?  What would make it so hard to determine? 
   




 --- On Tue 02/14, Dave Newton  [EMAIL PROTECTED]  wrote:
From: Dave Newton [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 14 Feb 2006 11:24:58 -0500
Subject: Re: memory usage

James Mitchell wrote: LOL!  That's like buying a truck from Ford, and then 
asking them how much it will weigh when you fill it up.That's a better answer 
than mine; I was just gonna say 15K and call itday.Dave You don't code your 
Struts in 
assembly?!-To
 unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL 
PROTECTED]

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-14 Thread James Mitchell
The footprint is still driven by your specific implementation.  The  
more session based form beans you use, the larger the footprint.  How  
should we determine this?  I guess you could run the struts-blank  
application, and measure that.  Would that be accurate?  Probably not.



--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx



On Feb 14, 2006, at 1:07 PM, [EMAIL PROTECTED] wrote:



I'm not sure I understand your gasps at my question.  To extend on  
the that's like buying a truck asking them how much it will weight  
when you fill it up -- I can calculate the memory usage of the  
parts that I implement on behalf of my application itself.   
Obviously no one can speak to the size of the memory usage of the  
applications specific objects that I create, things, I put in  
session, etc.


However, this isn't my question.  My question seems answerable  
enough.  I just want to know how much memory the struts framework  
tend to take up by itself, OR, alternately, what are the areas of  
memory usage to examine to decide such a thing.


Is this really not easily determined?  What would make it so hard  
to determine?





 --- On Tue 02/14, Dave Newton  [EMAIL PROTECTED]  wrote:
From: Dave Newton [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 14 Feb 2006 11:24:58 -0500
Subject: Re: memory usage

James Mitchell wrote: LOL!  That's like buying a truck from Ford,  
and then asking them how much it will weigh when you fill it  
up.That's a better answer than mine; I was just gonna say 15K and  
call itday.Dave You don't code your Struts in  
assembly?!--- 
--To unsubscribe, e-mail: user- 
[EMAIL PROTECTED] additional commands, e-mail: user- 
[EMAIL PROTECTED]


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-14 Thread Dave Newton
James Mitchell wrote:
 The footprint is still driven by your specific implementation.  The
 more session based form beans you use, the larger the footprint.  How
 should we determine this?  I guess you could run the struts-blank
 application, and measure that.  Would that be accurate?  Probably not.
Heck, it might even depend on the app server and JVM...

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: memory usage

2006-02-14 Thread Garner, Shawn
Yeah, but there is a weight class to it.

Shawn

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:20 AM
To: Struts Users Mailing List
Subject: Re: memory usage

LOL!  That's like buying a truck from Ford, and then asking them how  
much it will weigh when you fill it up.


--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx



On Feb 13, 2006, at 5:00 PM, [EMAIL PROTECTED] wrote:





 Let me know if this is not a very good question.  I need to know  
 roughly how much memory a struts application uses.

 What is the equation?

   framework objects + application actions and forms + ??

 My java classes that represent my business logic won't be in memory  
 until an action executes .  . . correct?



 ___
 Join Excite! - http://www.excite.com
 The most personalized portal on the Web!



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: memory usage

2006-02-14 Thread Garner, Shawn
You can tell him numbers with how many actions and how many form-beans.  
The memory the Servlet itself should be pretty constant.

Shawn

 -Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 12:28 PM
To: Struts Users Mailing List
Subject: Re: memory usage

The footprint is still driven by your specific implementation.  The  
more session based form beans you use, the larger the footprint.  How  
should we determine this?  I guess you could run the struts-blank  
application, and measure that.  Would that be accurate?  Probably not.


--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx



On Feb 14, 2006, at 1:07 PM, [EMAIL PROTECTED] wrote:


 I'm not sure I understand your gasps at my question.  To extend on  
 the that's like buying a truck asking them how much it will weight  
 when you fill it up -- I can calculate the memory usage of the  
 parts that I implement on behalf of my application itself.   
 Obviously no one can speak to the size of the memory usage of the  
 applications specific objects that I create, things, I put in  
 session, etc.

 However, this isn't my question.  My question seems answerable  
 enough.  I just want to know how much memory the struts framework  
 tend to take up by itself, OR, alternately, what are the areas of  
 memory usage to examine to decide such a thing.

 Is this really not easily determined?  What would make it so hard  
 to determine?




  --- On Tue 02/14, Dave Newton  [EMAIL PROTECTED]  wrote:
 From: Dave Newton [mailto: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Date: Tue, 14 Feb 2006 11:24:58 -0500
 Subject: Re: memory usage

 James Mitchell wrote: LOL!  That's like buying a truck from Ford,  
 and then asking them how much it will weigh when you fill it  
 up.That's a better answer than mine; I was just gonna say 15K and  
 call itday.Dave You don't code your Struts in  
 assembly?!--- 
 --To unsubscribe, e-mail: user- 
 [EMAIL PROTECTED] additional commands, e-mail: user- 
 [EMAIL PROTECTED]

 ___
 Join Excite! - http://www.excite.com
 The most personalized portal on the Web!



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage

2006-02-14 Thread netsql

Are you using r/o request beans or session r/w beans?
How many users at a time? What is the mix? How many bytes per 
columns/rows? (ex: displaytag)


Also, what is your DAO (data) caching plans? This in my designs is 
majority of RAM usage.


I built one site to support 10,000 concurent users, and we used 64 bit 
CPU (AMD) on servers ( 6 of them) to be able to address  4 gig JVM 
space to do more DAO caching of blobs (media/images)


Mostly this shakes itself out during stress testing (and struts is great 
at this since you can test your M (Data) layer by itself).


So since majority of memory is related to your domain (business app 
area)


The struts servlets takes very few bytes itself and there is one of 
each (even for multiple sessions).



hth,
.V


[EMAIL PROTECTED] wrote:
I'm not sure I understand your gasps at my question.  To extend on the that's like buying a truck asking them how much it will weight when you fill it up -- I can calculate the memory usage of the parts that I implement on behalf of my application itself.  Obviously no one can speak to the size of the memory usage of the applications specific objects that I create, things, I put in session, etc.   

However, this isn't my question.  My question seems answerable enough.  I just want to know how much memory the struts framework tend to take up by itself, OR, alternately, what are the areas of memory usage to examine to decide such a thing.  

Is this really not easily determined?  What would make it so hard to determine?





 --- On Tue 02/14, Dave Newton  [EMAIL PROTECTED]  wrote:
From: Dave Newton [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 14 Feb 2006 11:24:58 -0500
Subject: Re: memory usage

James Mitchell wrote: LOL!  That's like buying a truck from Ford, and then asking them how much 
it will weigh when you fill it up.That's a better answer than mine; I was just gonna say 15K 
and call itday.Dave You don't code your Struts in 
assembly?!-To unsubscribe, 
e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



memory usage

2006-02-13 Thread [EMAIL PROTECTED]




Let me know if this is not a very good question.  I need to know roughly how 
much memory a struts application uses.  

What is the equation? 

  framework objects + application actions and forms + ??

My java classes that represent my business logic won't be in memory until an 
action executes .  . . correct?  



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT: Session memory usage/other means] Re: Multi Step Forms

2005-04-04 Thread Dave Newton
Rick Reumann wrote:
Hi my name is Rick and I use the Session to store objects.
Hi Rick!
SUA - Session Users Anonymous - meeting/
Let's all thank Rick for sharing his story. *clap clap clap*
Group hug!
Well after looking for what was actually causing the out of memory 
problems, and determining it was just a matter of some necessary beans 
in Session scope causing the problem, than yes, add more memory etc.
Without using even marginally over-spec'ed servers I have yet to run out 
of memory, and I tend to store things in session, including shopping 
carts, whenever it's necessary or convenient to do so.

Maybe it's just because I don't store huge objects in session (in 
general), but even on a Torque-based app when I keep Torque beans in 
session I'm still not running out of room. (That's a relatively low-load 
app, though; it's never been stressed.)

On an internal app at one of my clients, not using torque but more or 
less plain old beans with specific functionality on a 1G machine with 
(typically) 500 users connected at any given time I was never in danger 
of breaking anything, though. (DB hosted on another machine.) Even if 
I'm storing, say, 100K of crap in the session for each user (which I 
definitely wasn't), that's 50M of session crap. That's a lot of crap. 
But it's still like 5% of my memory. (Right? I have a fever today and 
math cells are the first to go--marked for early swap.) So it's 
difficult for me to get all worked up about it, especially considering 
time and maintainence constraints.

Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Object size/memory usage

2004-10-26 Thread Guillaume Lederrey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 25 October 2004 16.34, Zhang, Larry (L.) wrote:
 Let's say I have two object

 public calss Object1{
  private name;
  private id;
  private depetId;

 }

 public calss Object2{
  private name;
  private id;
  private depetId;
  private country;
  private jobFamily;
  private isActive;
   . (there are another 100 attributes)

 }
 Object1 obj1= new Object1(); and set all attributes (name, id, depetId)
 of this object.
 Object2 obj2 = new Object2(); and then set the first three
 attributes(name, id, depetId).

 My question is that is obj1 and obj2 of the same size or usage of
 memory?

  No, object 2 will take more memory.

  If your attributes are primitive types (int, boolean, ...), they will be
allocated at the object creation. If your attributes are Objects, the
reference will be allocated at object creation, but the object the reference
is pointing to will not be allocated.

  I dont know what's the exact size of a reference in Java (probably 32 or 64
bits). Anyway, the size of the ref is probably small compared to the size of
an allocated object (depends on the size of your object).

  I hope it answers your question ...

 Guillaume Lederrey
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBfgH0W+xV6X6No3gRApeeAKDUnk9x2MI5BI5bVLA72ndeWoa5/QCbBY0U
IQM2kZkmfljZjGSGFRi1h8E=
=zM/T
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Object size/memory usage

2004-10-25 Thread Zhang, Larry \(L.\)

Let's say I have two object

public calss Object1{
private name;
private id;
private depetId;

}

public calss Object2{
private name;
private id;
private depetId;
private country;
private jobFamily;
private isActive;
  . (there are another 100 attributes)

}

Then I create 

Object1 obj1= new Object1(); and set all attributes (name, id, depetId)
of this object.
Object2 obj2 = new Object2(); and then set the first three
attributes(name, id, depetId).

My question is that is obj1 and obj2 of the same size or usage of
memory?

Thanks.

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]