continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Venisse" <emmanuel.veni...@gmail.com>
Subject Re: Getting "java.lang.OutOfMemoryError: unable to create new native thread"
Date Fri, 13 Jun 2008 08:32:40 GMT
Can you send the list?

On Thu, Jun 12, 2008 at 7:14 PM, Paul Spencer <paulsp@apache.org> wrote:

> Emmanuel Venisse wrote:
>
>> I'm sure you'll consume less threads if you use an external db instead of
>> the embedded.
>>
>
> I have done this and it has allowed both application run, although the
> thread count is 59.  Continuum consumes 21 threads and Archiva consumes 20
> threads in the Tomcat server.
>
> 21 threads appears to be a large number of threads.  Is this tuneable?
>
>
>
>> Emmanuel
>>
>> On Tue, Jun 10, 2008 at 12:27 AM, Paul Spencer <paulsp@apache.org> wrote:
>>
>>  I think I have found the cause of this error.  The Continuum web
>>> application and Tomcat are consuming 44 threads when all is idle.  The
>>> default max thread count on HP-UX is 64 per process. When Archiva is
>>> added
>>> to the Tomcat instance the thread count hits 64.
>>>
>>> Below is the database configuration in context.xml.
>>>  <Resource name="jdbc/continuum"
>>>          auth="Container"
>>>          type="javax.sql.DataSource"
>>>          username="sa"
>>>          password=""
>>>          driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>>>          url="jdbc:derby:/internal/continuum/db/continuum;create=true"
>>>  />
>>>
>>> So my questions are:
>>> 1) Why are so many threads being used?
>>>
>>> 2) How can be minimize the thread count?
>>>
>>> Paul Spencer
>>>
>>>
>>>
>>>
>>> Paul Spencer wrote:
>>>
>>>  Wendy Smoak wrote:
>>>>
>>>>  On Mon, Jun 9, 2008 at 8:52 AM, Paul Spencer <paulsp@apache.org>
>>>>> wrote:
>>>>>
>>>>>  Now that I have Archiva and Continuum running in the same Tomcat
>>>>> 6.0.16,
>>>>>
>>>>>> I
>>>>>> am seeing the exception "java.lang.OutOfMemoryError: unable to create
>>>>>> new
>>>>>> native thread" in catalina.out.
>>>>>>
>>>>>> JVM = build 1.5.0.01
>>>>>> OS = HP-UX 11.11
>>>>>>
>>>>>>  That looks familiar. :)  Who is the JDK vendor?  (ISTR that something
>>>>> in Redback requires a Sun JDK...)
>>>>>
>>>>>  $ $JAVA_HOME/bin/java -version
>>>> java version "1.5.0.01" Java(TM) 2 Runtime Environment, Standard
>>>> Edition
>>>> (build 1.5.0.01-_06_jun_2005_05_20)
>>>> Java HotSpot(TM) Server VM (build 1.5.0.01 jinteg:06.06.05-04:39 PA2.0
>>>> (aCC_AP), mixed mode)
>>>>
>>>>
>>>>
>>>>   java.lang.OutOfMemoryError: unable to create new native thread
>>>>>  I suspect the memory and/or stack configuration need to be altered,
>>>>> but
>>>>>
>>>>>> I am
>>>>>> not sure which ones to alter.  Currently CATALINA_OPT =
>>>>>> '-Dapplication.base=$ARCHIVA_BASE -Dapplication.home=$ARCHIVA_BASE"
>>>>>>
>>>>>>  If the message is in the Catalina log, you probably need to give
>>>>> Tomcat itself more memory.  This might help:
>>>>> http://wiki.apache.org/tomcat/FAQ/Memory
>>>>>
>>>>>
>>>>>  Paul Spencer
>>>>
>>>>
>>>>
>>>>
>>
> Paul Spencer
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message