I am trying to use the commons-fileupload classes and cannot figure
out how to keep my uploads from getting stored in memory. I am using
the following methods:
DefaultFileItemFactory fileItemFactory = new DefaultFileItemFactory(
10, new File(/tmp) );
DiskFileUpload upload = new DiskFileUpload(
-Original Message-
From: Elihu Smails
I am trying to use the commons-fileupload classes and
cannot figure out how to keep my uploads from getting
stored in memory. I am using the following methods:
DefaultFileItemFactory fileItemFactory = new
PROTECTED]
Enviada em: quinta-feira, 24 de março de 2005 10:40
Para: Tomcat Users List
Assunto: commons-fileupload memory problem
I am trying to use the commons-fileupload classes and cannot figure
out how to keep my uploads from getting stored in memory. I am using
the following methods
I am using apache FOP to create some PDFs. I am facing OutOfMemory problem
specially for Chinese PDFs. I understand that I can increase JVM memory. I
tried to change the catalina.bat and inserted following line
JAVA_OPTS = -Xmx512M
First of all i am not sure whether above is correct or not
We often have to restart Tomcat because of an ODBC issue (yes, we're
switching databases as soon as we can). However, I've noticed this
error occuring in the Windows 2000 Event Log in association with Apache
Tomcat:
The CreateThread function failed for the following reason: Not enough
storage is
: strange memory problem
java.lang.OutOfMemoryError is also thrown when java can't start up a
thread because it reached the system limit. Could that be your
problem?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
I try to run several instances of a large web
application in one Tomcat. My JAVA_OPTS shell variable
is set to -Xmx700m -Xms700m and the web application
also reports that 700 MByte RAM are available, and
maybe 180 MByte in use.
After a few hours I got the java.lang.OutOfMemoryError
in
java.lang.OutOfMemoryError is also thrown when java can't start up a
thread because it reached the system limit. Could that be your problem?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
How knows how do i make to resolve this problem, is necesary to
recompile the default kernel of linux redhat 9.0 and what flag must i to
select. thanks?
Software wrote:
Hi, i've installed tomcat 4130 in my linux redhat 9.0 with the default
kernel and j2sdk1.4.0 in a server with 1 GB RAM and
Fabian,
I am not sure if I have the answer to your memory problem but let me give
you some information to get more help from others.
1. Where are you looking to see this memory use?
2. Does Tomcat stop responding?
3. Have you loaded any of your applications?
No
4. Are you using a database?
5
not sure if I have the answer to your memory problem but let me give
you some information to get more help from others.
1. Where are you looking to see this memory use?
2. Does Tomcat stop responding?
3. Have you loaded any of your applications?
No
4. Are you using a database?
5. What JDK version
Hi, i've installed tomcat 4130 in my linux redhat 9.0 with the default
kernel and j2sdk1.4.0 in a server with 1 GB RAM and 2.4Ghz Processor
The problem is when i start the tomcat it start to consume the memory
progressively and i don't have running any application in this moment,
then i have
I have been battling a memory problem for a few months now with no luck. I
have used profilers and everything else you could imagine. The problem is
we have never been able to duplicate it on the testing servers it only
happens on production which does not see much load at all (100 users a day
: Friday, April 02, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: Odd Memory Problem
I have been battling a memory problem for a few months now with no
luck. I
have used profilers and everything else you could imagine. The problem
is
we have never been able to duplicate it on the testing servers
in the connector for
mod_jk,
please go through the last weeks emails and let us know what you find
out.
Filip
-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 7:55 PM
To: Tomcat Users List
Subject: apache + 2 tomcat cluster memory problem
Hello
Hello everyone,
I have 2 Tomcats (both 5.0.19) running on two separate machines. One
machine also has Apache 2.0.49 installed on it for load balancing.
Apache communicates with tomcat1 thru port 11005 and tomcat2 thru
12005. tomcat1 and Apache are on the same machine. Apache is set to
: apache + 2 tomcat cluster memory problem
Hello everyone,
I have 2 Tomcats (both 5.0.19) running on two separate machines. One
machine also has Apache 2.0.49 installed on it for load balancing.
Apache communicates with tomcat1 thru port 11005 and tomcat2 thru
12005. tomcat1 and Apache
Jerald (or is it Gerald -- your email address and 'name' don't match),
Now sessionStatus is getting caught fine, but when I try and
redirect to a JSP after that, nothing happens. I originally tried
mapping.findForward (Struts), response.sendRedirect and forwarding
using RequestDispatcher. I have
Hi,
Its Gerald (long dull story), but you can call me anything you like.
I can now say with some surety, that the forward is not the problem. In a Struts
action, the null session is being picked up and the mapping.findForward(a_file.jsp);
(a Struts forward method) is forwarding on
Jerald,
session.setMaxInactiveTimeout(-1);
Yeah, this is a bad idea. The session will never go away by itself. This
*requires* the user to press a logout button, and for you to explicitly
call session.invalidate(). Users frequently do not log themselves out,
and their sessions will never
Hello, and thank you for that,
Yes, I am timing the session out and trying to handle the result. I have:
HttpSession objSession = request.getSession(true);
String sessionStatus = (String) objSession.getAttribute(sessionStatus);
if (sessionStatus == null) {
Hello and thank you for that (all),
Originally,
request.getSession().setMaxInactiveInterval(-1);
was set. After some deliberation (not a lot), I opted for setting the session to time
out, defined in web.xml:
session-config
session-timeout1/session-timeout
/session-config
PS is the session time out linked wirth inactivity? My session attribute only persists
as long as I am using the app.
G.
-
Yahoo! Messenger - Communicate instantly...Ping your friends today! Download
Messenger Now
Follow Sun's rules of garbage collection and all will be OK. Your session
objects might have a reference to something that isn't letting the GC do its job.
(I think) Profilers are good at find this kind of stuff.
-Tim
Jerald Powel wrote:
Hello,
How might I reclaim memory, e.g after a
G,
But, when I close down a client window, the
memory consumption remains at it's peak (and climbs with each
successive new client opened) In other words, memory consumption
increments but never decrements, necessitating a server bounce at
unacceptable frequency.
What is your definition of
Hola,
But, when I close down a client window, the
memory consumption remains at it's peak (and climbs with each
successive new client opened) In other words, memory consumption
increments but never decrements, necessitating a server bounce at
unacceptable frequency.
What is your definition
Hello,
How might I reclaim memory, e.g after a session expires when a client browser is
closed down? Predicament: as I open up new client windows, the memory (viewed in
Windows task manager) creeps up with each new window opened. The app that is loaded
creates a session and stores various
do not have time to mess with this right now, but I am
interested to know if it fixes the leak.
Charlie
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of David Strupl
Sent: Monday, January 19, 2004 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 9:19 PM
To: Tomcat Users List
Subject: Re: out of memory problem. Help!
Shapira, Yoav wrote:
Howdy,
root cause
java.lang.OutOfMemoryError
It happens When the corresponding request returns more than
2-3
rows from
attention.
[EMAIL PROTECTED] 01/19/04 01:20AM
Check session-timeout in web.xml. -1 is never timeout
session-timeout-1/session-timeout
-Original Message- From: Christophe Andreoli
[mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 9:19 PM To:
Tomcat Users List Subject: Re: out of memory
to be a binary
download yet
Cheers ADC
-Original Message-
From: David Strupl [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 17:00
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem. Help!
If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade to
4.1.27
download yet
Cheers ADC
-Original Message- From: David Strupl
[mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:00 To:
[EMAIL PROTECTED] Subject: Re: out of memory problem.
Help!
If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade
to 4.1.27. There is a significant memory
...does not seem to be a binary download yet
I suggest you continue investigating with your profiler: you have a
different problem.
-Original Message- From: David Strupl
[mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:00 To:
[EMAIL PROTECTED] Subject: Re: out of memory problem.
Help
Remy Maucherat wrote:
This is not true: there's indeed a memory leak with 5.0.16, but it would
occur only with specific traffic patterns. It will not bring a server
down in just a few requests.
Indeed. The thread pool has to grow and shrink for this to happen.
Unfortunatelly quite common e.g. day
set maxSpareThreads=minSpareThreads=maxThreads will cause the system to
never shrink the pool
Filip
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of David Strupl
Sent: Monday, January 19, 2004 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem. Help!
Remy
: Re: out of memory problem. Help!
Remy Maucherat wrote:
This is not true: there's indeed a memory leak with 5.0.16, but it would
occur only with specific traffic patterns. It will not bring a server
down in just a few requests.
Indeed. The thread pool has to grow and shrink for this to happen
Check session-timeout in web.xml.
-1 is never timeout
session-timeout-1/session-timeout
-Original Message-
From: Christophe Andreoli [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 9:19 PM
To: Tomcat Users List
Subject: Re: out of memory problem. Help!
Shapira, Yoav wrote
Hello !
I have a Struts/jsp Application
Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
- Get more memory
- allocate more memory to the JVM
(http://jakarta.apache.org/tomcat/faq/memory.html#adjust)
- Don't place 20,000 ros of data in memory
- Limit the size of your query
-Tim
Christophe Andreoli wrote:
Hello !
I have a Struts/jsp Application
Ich get an out of memory
Howdy,
root cause
java.lang.OutOfMemoryError
It happens When the corresponding request returns more than 2-3
rows from the database, not every time
Perhaps you should allocate your JVM more memory, by using the Java -Xmx
parameter. Alternatively, consider a system design that
Shapira, Yoav wrote:
Howdy,
root cause
java.lang.OutOfMemoryError
It happens When the corresponding request returns more than 2-3
rows from the database, not every time
Perhaps you should allocate your JVM more memory, by using the Java -Xmx
parameter.
I did it and I
Howdy,
It works better but why are the 2000 objects are not garbaged after
each
request ?
There's only one reason objects aren't garbage-collected in java: other
objects are keeping references to them. You can inspect or profile your
code to see what keeps references to what.
Yoav Shapira
, but it does
not seem to affect the apache/tomcat connection.
Thanks a lot.
Cheers
Mario
-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED]
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47
: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection
Try the following:
# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576
[channel.socket:localhost:8009]
tomcatId=tomcat1
[ajp13:localhost:8009]
channel=channel.socket:localhost
Sorry,
It looks as if html attachements are not accepted by the list server. I try
to attach it as a zip-file.
-Original Message-
From: Mario Juric [mailto:[EMAIL PROTECTED]
Sent: 23. oktober 2003 08:59
To: 'Tomcat Users List'
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection
Sorry,
It looks as if html attachements are not accepted by the list server. I try
to attach it as a zip-file.
-Original Message-
From: Mario Juric [mailto:[EMAIL PROTECTED]
Sent: 23. oktober 2003 08:59
I need some help in solving the following problem.
I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection using the standard Tomcat examples webapp. The browser waits
forever when I try to access http://localhost/examples/. I also get the the
following errors two
User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection
I need some help in solving the following problem.
I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection using
Hi,
How to set the maximum number of threads or clients
that the server can deal with simultonously? Running
java bean takes much memory, so I want to control the
number of users who can run it at the same time. I use
Apache2, Tomcat4.1 and mod-Jk2 under win2k. Thx,
Minger
The upgrade to IBMJava2-14 seems to have solved the memory problem. My site (RedHat
7.1, Tomcat 4.1.12, Apache/1.3.19) has been running for several days, getting hit
approximately 10 times the normal amount (due to a script I wrote) and the memory has
not climbed above 133 Megs. Using IBMJava2
I get OutofMemory with tomcat 4.0.6 and sun's jdk1.3.
From the archives I found this is due to a bug in the
sun's jdk 1.3 JVM, and people suggest to upgrade to
1.4
Does IBM's jdk1.3 too gives the same problem or is it
only the Sun's?
Thanks,
Rf
__
I wouldn't upgrade to SUN 1.4, it has the same but different problem:
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
rf [EMAIL PROTECTED] wrote on 16.01.2003 12:14:48:
I get OutofMemory with tomcat 4.0.6 and sun's jdk1.3.
From the archives I found this is due to a bug in
]]
Sent: Thursday, January 16, 2003 7:26 AM
To: Tomcat Users List
Subject: Re: memory problem
I wouldn't upgrade to SUN 1.4, it has the same but different problem:
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
rf [EMAIL PROTECTED] wrote on 16.01.2003 12:14:48:
I
Hello,
I had to integrate Tomcat with IIS for a bank. It has been working well
since recently, a problem appears with the memory used by the inetinfo
process.
In fact, the size of the memory used by the inetinfo process (which I can
visualize in the task manager) increases continuously and
Hi all,
I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux
I have 1GB RAM...when I start the server and check the memory usage it shows
100MB use so balance 900MB is there but day by day the memory consumption
is increasing and after 5 days I saw 550MB used when I checked the
]]
Sent: terça-feira, 14 de Janeiro de 2003 9:23
To: [EMAIL PROTECTED]
Subject: TOMCAT - MEMORY PROBLEM
Hi all,
I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux
I have 1GB RAM...when I start the server and check the memory usage it
shows
100MB use so balance 900MB
: TOMCAT - MEMORY PROBLEM
I have a very similar problem: sleeping processes (threads)
increasing, free memory decreasing... And still couldn't get
a solution from the list... Currently I have to restart
tomcat every night!
Joao Filipe Placido
-Original Message-
From
we
have too many hosts and the system runs out of native threads when using a
profiler.
Brandon
-Original Message-
From: John Trollinger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 8:45 AM
To: 'Tomcat Users List'
Subject: RE: TOMCAT - MEMORY PROBLEM
If your jsp pages
on this and in the meantime am working on testing
this theory. I'll keep you updated.
Steve
-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:24 AM
To: Tomcat Users List
Subject: RE: TOMCAT - MEMORY PROBLEM
Same problem here
Hi all,
my system is this: I have a solaris machine (2GB RAM) with apache 1.3.19 and
two instances of Tomcat 4.0.3 in a load balancer configuration.
I started all three days ago: this morning I have found the two Tomcat dead.
All my servlets didn't respond and all the system was dead.
It's
PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: tomcatUser [EMAIL PROTECTED]
Subject: My growing memory problem resolved
Date: Mon, 07 May 2001 03:45:55 +0200
Hello ,
i have posted for a few day's a problem thats the Memory usage will
extremly grow up when I refresh a page very often
PROTECTED]]
Gesendet: Montag, 7. Mai 2001 03:46
An: tomcatUser
Betreff: My growing memory problem resolved
Hello ,
i have posted for a few day's a problem thats the Memory usage will
extremly grow up when I refresh a page very often
The Problem was, that I creat a heavy memory Object
Hello ,
i have posted for a few day's a problem thats the Memory usage will
extremly grow up when I refresh a page very often
The Problem was, that I creat a heavy memory Object on each refresh.
Normally I have 81 processes run at all, when execute the stress-test
the processcount will rise till
: Sunday, May 06, 2001 6:46 PM
To: tomcatUser
Subject: My growing memory problem resolved
Hello ,
i have posted for a few day's a problem thats the Memory usage will
extremly grow up when I refresh a page very often
The Problem was, that I creat a heavy memory Object on each refresh.
Normally I have 81
I am trying to run tomcat-3.2 on windows 95
platform
and could not do. It said 'running out of
environment
space'. Any idea what should I do ?
[EMAIL PROTECTED]
--
- Original Message -
From:
ssarkar
To: [EMAIL PROTECTED]
Sent: Sunday, December 31, 2000 9:04
AM
Subject: Memory problem
I am trying to run tomcat-3.2 on windows 95
platform
and could not do. It said 'running out of
environment
space'. Any idea what should
.
SHuklix
-Original Message-
From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 10:08 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Increasing memory problem
Hi, Kai.
The problem you are experiencing is a difficult one
See below.
Saurabh Shukla wrote:
could you tell me more about the thread pooling, please? Where do I get
some
information? How does Tomcat handle the requests?
Thank you.
Kai
I hope this helps.
The PROBLEM:
Tomcat is a multi-threaded servlet container, this means that the requests
n also try Thread Pooling in tomcat, it might be help.
SHuklix
-Original Message-
From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 10:08 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Increasing memory problem
Hi, Kai.
The p
Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 10:08 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Increasing memory problem
Hi, Kai.
The problem you are experiencing is a difficult one, as it relates to the
way you allocate and de-allocate your
YOu can also try Thread Pooling in tomcat, it might be help.
SHuklix
-Original Message-
From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 10:08 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Increasing memory problem
Hi, Kai
Hi everybody!
My problem is the following:
after I start my application (JSPs read from MySQL) with Tomcat 3.1 the
used memory of the java processes increases and the number of java
processes themselves increases if I reload the same site (2 per second),
reload, reload, reload ;-)
The
Give tomcat more memory..
check up your startup file for that..
Shuklix
-Original Message-
From: Kai Müller [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:05 PM
To: [EMAIL PROTECTED]
Subject: Increasing memory problem
Hi everybody!
My problem is the following:
after
73 matches
Mail list logo