archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Atkinson <brent.atkin...@gmail.com>
Subject Re: 100 %cpu usage
Date Fri, 18 Feb 2011 13:37:44 GMT
Hi,

There are multiple tools to do this, but Java 6 comes with jconsole and
there's a third party plugin called topthreads that allows you to see the
thread, class and method that is taking up time. It's not a full profiler,
but it's simple enough to get some decent information about where the issues
are.

The plugin: http://lsd.luminis.nl/top-threads-plugin-for-jconsole/

You just need to fire up jconsole with the plugin enabled when you're seeing
the 100% cpu usage. Sending along a screen shot showing the stack trace from
the offending thread(s) would help immensely since we can't see the
specifics of your environment.

Brent

On Fri, Feb 18, 2011 at 3:06 AM, Benjamin Knoth <knoth@mpdl.mpg.de> wrote:

> Yesterday archiva used 100% of CPU since 14:06
>
> 14:02 1%
> 14:04 21%
> 14:06 100%
>
> Am 16.02.2011 02:24, schrieb Brett Porter:
> >
> > On 16/02/2011, at 2:14 AM, Benjamin Knoth wrote:
> >
> >> Sorry only one java process is running.
> >> But two processes from archiva.
> >> If i start archiva dump i get this two messages.
> >> Dumping Apache Archiva...
> >> Dumped Apache Archiva.
> >
> > Ok, this is normal.
> >
> >>
> >> But i can see any changes on archiva.pid or new processes of archiva or
> >> dump.
> >
> > You should see in ./logs/wrapper.$DATE.log a large output of what all the
> threads are doing.
>
> In wrapper.log is any log between 04:18 and 17:06
>
> INFO   | jvm 1    | 2011/02/17 04:18:17 |       at
>
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
> STATUS | wrapper  | 2011/02/17 17:06:06 | TERM trapped.  Shutting down.
> INFO   | jvm 1    | 2011/02/17 17:06:07 | 2011-02-17 17:06:07.429::INFO:
>  Shutdown hook executing
>
>
> >
> > - Brett
> >
> > --
> > Brett Porter
> > brett@apache.org
> > http://brettporter.wordpress.com/
> > http://au.linkedin.com/in/brettporter
> >
> >
> >
> >
>
> No Log on archiva-audit.log, archiva.log in this time.
>
>
> The last log was in archiva-security-audit.log
> 2011-02-17 13:45:01 -  - Successful Login for user
>
>
>
> In request.log if found this logs in this time
>
> 134.76.28.224 -  -  [17/Feb/2011:14:02:25 +0000] "GET
> /archiva/repository/internal HTTP/1.1" 302 0 "-" "Java/1.6.0_20"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:25 +0000] "GET
> /archiva/repository/internal/ HTTP/1.1" 200 19332 "-" "Java/1.6.0_20"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:25 +0000] "GET
> /archiva/repository/snapshots HTTP/1.1" 302 0 "-" "Java/1.6.0_20"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:25 +0000] "GET
> /archiva/repository/snapshots/ HTTP/1.1" 200 370 "-" "Java/1.6.0_20"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:29 +0000] "HEAD
> /archiva/repository/internal//axis/axis/1.4/axis-1.4.jar HTTP/1.1" 200 0
> "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux 2.6.35-25-generic)
> maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:34 +0000] "HEAD
> /archiva/repository/internal//axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:39 +0000] "HEAD
> /archiva/repository/internal//bcel/bcel/5.1/bcel-5.1.jar HTTP/1.1" 200 0
> "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux 2.6.35-25-generic)
> maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:41 +0000] "GET /archiva/
> HTTP/1.1" 302 0 "-" "OpenNMS HttpMonitor"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:43 +0000] "HEAD
>
> /archiva/repository/internal//bouncycastle/bcmail-jdk14/138/bcmail-jdk14-138.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:49 +0000] "HEAD
>
> /archiva/repository/internal//bouncycastle/bcprov-jdk14/138/bcprov-jdk14-138.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:02:54 +0000] "HEAD
> /archiva/repository/internal//com/lowagie/itext/2.1.5/itext-2.1.5.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:03:44 +0000] "HEAD
> /archiva/repository/internal//com/maxmind/geoip/geoip/1.2.3/geoip-1.2.3.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.212 -  -  [17/Feb/2011:14:03:50 +0000] "GET / HTTP/1.1" 404
> 786 "-" "OpenNMS HttpMonitor"
> 134.76.28.224 -  -  [17/Feb/2011:14:03:49 +0000] "HEAD
>
> /archiva/repository/internal//commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) mav
> en-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:03:54 +0000] "HEAD
>
> /archiva/repository/internal//commons-codec/commons-codec/1.3/commons-codec-1.3.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.
> 1"
> 134.76.28.224 -  -  [17/Feb/2011:14:03:59 +0000] "HEAD
>
> /archiva/repository/internal//commons-collections/commons-collections/3.2/commons-collections-3.2.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) m
> aven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:04 +0000] "HEAD
>
> /archiva/repository/internal//commons-digester/commons-digester/1.8/commons-digester-1.8.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-arti
> fact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:09 +0000] "HEAD
>
> /archiva/repository/internal//commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-a
> rtifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:14 +0000] "HEAD
>
> /archiva/repository/internal//commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic)
> maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:22 +0000] "HEAD
>
> /archiva/repository/internal//commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-art
> ifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:27 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/citationmanager/1.0.60/citationmanager-1.0.60.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic)
>  maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:33 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/common_logic/1.1.55/common_logic-1.1.55.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven
> -artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:38 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/common_logic/1.1.55/common_logic-1.1.55.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven
> -artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:43 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/dataacquisition/1.0.52/dataacquisition-1.0.52.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic)
>  maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:47 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/framework_access/1.0.58/framework_access-1.0.58.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generi
> c) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:52 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/search/1.0.55/search-1.0.55.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.
> 2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:04:56 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/structuredexportmanager/1.0.58/structuredexportmanager-1.0.58.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux 2.
> 6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:01 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/transformation/1.0.43/transformation-1.0.43.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) m
> aven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:06 +0000] "HEAD
>
> /archiva/repository/internal//de/mpg/escidoc/services/validation/1.0.62/validation-1.0.62.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-art
> ifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:11 +0000] "HEAD
> /archiva/repository/internal//dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:16 +0000] "HEAD
> /archiva/repository/internal//eclipse/jdtcore/3.1.0/jdtcore-3.1.0.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:20 +0000] "HEAD
>
> /archiva/repository/internal//external/java_assist/3.9.0/java_assist-3.9.0.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:25 +0000] "HEAD
>
> /archiva/repository/internal//external/scannotation/1.0.2/scannotation-1.0.2.jar
> HTTP/1.1" 200 0 "-" "Apache-Maven/2.2 (Java 1.6.0_20; Linux
> 2.6.35-25-generic) maven-artifact/2.2.1"
> 134.76.28.224 -  -  [17/Feb/2011:14:05:58 +0000] "GET /archiva/
> HTTP/1.1" 302 0 "-" "check_http/v1.4.15 (nagios-plugins 1.4.15)"
>
>
> Best regards
>
> Benjamin
>
>

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