syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "georg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-1017) too many open files (tcp connections)
Date Sat, 18 Feb 2017 15:13:44 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15873204#comment-15873204
] 

georg commented on SYNCOPE-1017:
--------------------------------

Dear Francesco,
thanks for your hint. It seems tomcat8 does not close unused tasks of syncope application.
After i log in into syncope-console i see only a few tasks:

lsof |grep CLOSE |wc

but each task open all 432 jar files of syncope:
ls -l /proc/32257/task/32454/fd |wc

After one hour i can see already 1233 tasks and each of it  has all 432 syncope files open
ls -l /proc/32257/task |wc -l
1233

so no wonder that Kernel 4.8.0 gives up with message "Too many open files"
I would like to compare that with your machine. Can you send me the output of "lsof |grep
CLOSE" after you had worked with syncope-console over one hour?

Best regards
Georg

uname -a
Linux heissa.de 4.8.0-2-amd64 #1 SMP Debian 4.8.15-2 (2017-01-04) x86_64 GNU/Linux
free -h
              total        used        free      shared  buff/cache   available
Mem:           2.0G        843M        374M         33M        786M        943M
Swap:          465M         57M        408M
03:15:01 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:25:01 PM     all      0.35      0.00      0.33      0.78      0.00     98.53
03:35:01 PM     all      0.94      0.00      1.05      1.08      0.00     96.94
03:45:01 PM     all      0.57      0.00      0.51      0.78      0.00     98.15
Average:        all      0.53      0.00      0.43      1.16      0.00     97.88




> too many open files (tcp connections)
> -------------------------------------
>
>                 Key: SYNCOPE-1017
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1017
>             Project: Syncope
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 2.0.2
>         Environment: linux
>            Reporter: georg
>            Priority: Minor
>         Attachments: console.log.gz
>
>
> i work with only one user and after one hour i get too many open files with state CLOSE_WAIT:
> tcp6       1      0 130.255.78.128:49500    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:53026    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:46512    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:48472    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:48086    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       6      0 130.255.78.128:48460    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:47130    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:51704    130.255.78.128:8080     CLOSE_WAIT  20014/java
> tcp6       8      0 130.255.78.128:37098    130.255.78.128:8080     CLOSE_WAIT  20014/java
>  ps -ef |grep 20014
> tomcat8  20014     1  8 13:31 ?        00:13:35 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true
-Dfile.encoding=UTF-8 -server -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:+DisableExplicitGC -Djava.endorsed.dirs=/usr/share/tomcat8/endorsed
-classpath /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat8
-Dcatalina.home=/usr/share/tomcat8 -Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp org.apache.catalina.startup.Bootstrap
start



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message