Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
OutOfMemory on weblogic server

OutOfMemory on weblogic server

2005-01-06       - By Sanjeev K.R

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi,
Our application is huge and the client side is Swing UI,
We are using JWS to launch the application.
And the backend in sybase.
This is happening in all platforms,
Developement and as well as in Production....
We are using Connection pool
as "David " had pointed out it is infact 'ms' for the first argument in JAVA
_OPTIONS
"-server -ms512m -mx1024m"
How do i monitor how long its taking to write?
We have set the transaction time-out to 240 seconds,after which the server
doesn't repond,
it just throws and exception saying "No response after "240" seconds".
Please let me know how can i run it in a different thread.
We also use Quartz scheduler which is different process,
do you think this would work if we do it on quartz sceduler..

let me know your suggestions and opinions...

regards
Sanjeev



Kevin Gaasch <keving@(protected)> wrote:
I would agree with David on this one. A client request should return in
a timely manner. Hence, you would want that kind of processing done on
a separate thread.

One other suggestion I have is to set you minimum heap (ms) equal to
your maximum heap. That way the server doesn't have to burn CPU cycles
trying to allocate memory.

You should also consider refactoring the way you're building the file.
I would bet that your memory problems are not caused by the size of the
file, but how you're creating it. For example, if you build the entire
file as a string in memory, that would eat a significantly larger amount
of memory than writing the file to the stream in chunks. Remember that
if you're running in a multi-user environment, there will be other
clients trying to use the system. You don't want to "nail the server to
the wall" for just one process.

As for your timeout problem, you can adjust the timeout length in the
JTA settings on the weblogic console.

Kevin E. Gaasch
Panhandle Plains Student Loan Center
Software Craftsman
Senior Programmer/Analyst
Sun Certified Java Programmer
Work: 806.324.4108
Cell: 806.674.1523

>>> david.karr@(protected) 1/6/2005 11:07:26 AM >>>
Are those the exact arguments you're sending on the command line? I'm
not sure what that would do, as you're specifying "-mx" twice. You
probably meant the first one to be "-ms". In any case, I imagine that
would still set "-mx" to 1024, but that's just a guess.

Are you monitoring how long it really takes to write the data to the
file? Is it really taking on the order of >240 seconds? If so, then
you should probably do that on a separate thread, asynchronously from
the original client request.

-- --Original Message-- --
From: A mailing list for Java(tm) 2 Platform, Enterprise
Edition
[mailto:J2EE-INTEREST@(protected)] On Behalf Of Sanjeev K.R
Sent: Thursday, January 06, 2005 1:41 AM
To: J2EE-INTEREST@(protected)
Subject: OutOfMemory on weblogic server


Hi,

We are running weblogic 7.0 on linux redhat 7.3.
I am getting outOfmemory on the server side whenever we are
trying to export large amout of data to a csv file.
I tried increasing the heap size by specifying java options
"-server -mx512m -mx1024m"
but now i am not getting the OutOfmemory but a error on the
client side saying
"No response for "240" seconds"
where 240 is the transaction-timeout .
after this i cannot do anything with the server,
i have to restart the server :(
Can any one please help me solve this problem.

Regards
Sanjeev




__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

http://mail.yahoo.com
========================================================================
=== To unsubscribe, send email to listserv@(protected) and include in
the body of the message "signoff J2EE-INTEREST". For general help,
send
email to listserv@(protected) and include in the body of the message
"help".




===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the
body
of the message "signoff J2EE-INTEREST". For general help, send email
to
listserv@(protected) and include in the body of the message "help".


CONFIDENTIALITY NOTICE
The information contained in this message and/ or its attachments may be
privileged and confidential, and is intended only for the use of the individual
(s) named above. If you are not the intended recipient, you are notified that
any dissemination, distribution, or copying of this communication is strictly
prohibited and are requested to delete the message and/or its attachments. If
you have received this communication in error please notify us immediately by
telephone at (806) 324-4100.
Panhandle-Plains Student Loan Center (PPSLC), has taken reasonable precautions
to ensure that any attachment to this e-mail has been scanned for viruses. We
specifically disclaim all liability and will accept no responsibility for any
damage sustained as a result of software viruses. We advise you to carry out
your own virus checks before opening any attachment.

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected) and include in the body of the message "help".


-- ---- ---- ---- ---- ---- -----
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

<DIV>Hi,</DIV>
<DIV>Our application is huge and the client side is Swing UI,</DIV>
<DIV>We are using JWS to launch the application.</DIV>
<DIV>And the backend in sybase.</DIV>
<DIV>This is happening in all platforms,</DIV>
<DIV>Developement and as well as in Production....</DIV>
<DIV>We are using Connection pool</DIV>
<DIV>as "David " had pointed out it is infact 'ms' for the first argument in
JAVA_OPTIONS</DIV>
<DIV>"<FONT size=2>-server -ms512m -mx1024m</FONT>"</DIV>
<DIV>How do i monitor how long its taking to write?</DIV>
<DIV>We have set the transaction time-out to 240 seconds,after which&nbsp;the
server doesn't repond,</DIV>
<DIV>it just throws and exception saying "No response&nbsp;after "240" seconds"
.</DIV>
<DIV>Please let me know how can i run it in a different thread.</DIV>
<DIV>We also use Quartz scheduler which&nbsp;is different process,</DIV>
<DIV>do you think this would work if we do it on quartz sceduler..</DIV>
<DIV>&nbsp;</DIV>
<DIV>let me know your suggestions and opinions...</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards</DIV>
<DIV>Sanjeev</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR><B><I>Kevin Gaasch &lt;keving@(protected)&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER
-LEFT: #1010ff 2px solid">I would agree with David on this one. A client request
should return in<BR>a timely manner. Hence, you would want that kind of
processing done on<BR>a separate thread.<BR><BR>One other suggestion I have is
to set you minimum heap (ms) equal to<BR>your maximum heap. That way the server
doesn't have to burn CPU cycles<BR>trying to allocate memory.<BR><BR>You should
also consider refactoring the way you're building the file.<BR>I would bet that
your memory problems are not caused by the size of the<BR>file, but how you're
creating it. For example, if you build the entire<BR>file as a string in memory
, that would eat a significantly larger amount<BR>of memory than writing the
file to the stream in chunks. Remember that<BR>if you're running in a multi
-user environment, there will be other<BR>clients trying to use the system. You
don't want to "nail the server to<BR>the wall" for ju
st one
process.<BR><BR>As for your timeout problem, you can adjust the timeout length
in the<BR>JTA settings on the weblogic console.<BR><BR>Kevin E. Gaasch<BR
>Panhandle Plains Student Loan Center<BR>Software Craftsman<BR>Senior Programmer
/Analyst<BR>Sun Certified Java Programmer<BR>Work: 806.324.4108<BR>Cell: 806.674
.1523<BR><BR>&gt;&gt;&gt; david.karr@(protected) 1/6/2005 11:07:26 AM &gt;&gt;&gt;
<BR>Are those the exact arguments you're sending on the command line? I'm<BR>not
sure what that would do, as you're specifying "-mx" twice. You<BR>probably
meant the first one to be "-ms". In any case, I imagine that<BR>would still set
"-mx" to 1024, but that's just a guess.<BR><BR>Are you monitoring how long it
really takes to write the data to the<BR>file? Is it really taking on the order
of &gt;240 seconds? If so, then<BR>you should probably do that on a separate
thread, asynchronously from<BR>the original client request.<BR><BR>----
-Original Message-- --<BR>From: A mailing list for Java(
tm) 2
Platform, Enterprise<BR>Edition<BR>[mailto:J2EE-INTEREST@(protected)] On
Behalf Of Sanjeev K.R<BR>Sent: Thursday, January 06, 2005 1:41 AM<BR>To: J2EE
-INTEREST@(protected)<BR>Subject: OutOfMemory on weblogic server<BR><BR><BR>Hi,
<BR><BR>We are running weblogic 7.0 on linux redhat 7.3.<BR>I am getting
outOfmemory on the server side whenever we are<BR>trying to export large amout
of data to a csv file.<BR>I tried increasing the heap size by specifying java
options<BR>"-server -mx512m -mx1024m"<BR>but now i am not getting the
OutOfmemory but a error on the<BR>client side saying<BR>"No response for "240"
seconds"<BR>where 240 is the transaction-timeout .<BR>after this i cannot do
anything with the server,<BR>i have to restart the server :(<BR>Can any one
please help me solve this problem.<BR><BR>Regards<BR>Sanjeev<BR><BR><BR><BR><BR
>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __<BR>Do You Yahoo!?<BR>Tired
of spam? Yahoo! Mail has the best spam protection
around<BR><BR>http://mail.yahoo.com<BR>=======================================
=================================<BR>=== To unsubscribe, send email to listserv
@(protected) and include in<BR>the body of the message "signoff J2EE-INTEREST".
For general help,<BR>send<BR>email to listserv@(protected) and include in the
body of the message<BR>"help".<BR><BR><BR><BR><BR>=============================
==============================================<BR>To unsubscribe, send email to
listserv@(protected) and include in the<BR>body<BR>of the message "signoff
J2EE-INTEREST". For general help, send email<BR>to<BR>listserv@(protected) and
include in the body of the message "help".<BR><BR><BR>CONFIDENTIALITY NOTICE<BR
>The information contained in this message and/ or its attachments may be
privileged and confidential, and is intended only for the use of the individual
(s) named above. If you are not the intended recipient, you are notified that
any dissemination, distribution, or copying of
this
communication is strictly prohibited and are requested to delete the message
and/or its attachments. If you have received this communication in error please
notify us immediately by telephone at (806) 324-4100.<BR>Panhandle-Plains
Student Loan Center (PPSLC), has taken reasonable precautions to ensure that
any attachment to this e-mail has been scanned for viruses. We specifically
disclaim all liability and will accept no responsibility for any damage
sustained as a result of software viruses. We advise you to carry out your own
virus checks before opening any attachment.<BR><BR>============================
===============================================<BR>To unsubscribe, send email to
listserv@(protected) and include in the body<BR>of the message "signoff J2EE
-INTEREST". For general help, send email to<BR>listserv@(protected) and include
in the body of the message "help".<BR></BLOCKQUOTE><p>
               <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions
.yahoo.com/new_mail/static/protection.html">Yahoo! Mail</a> - You care about
security. So do we.
===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".
<p>

©2008 junlu.com - Jax Systems, LLC, U.S.A.