Доброго дня,
На почту от биллинга сыпятся валом письма:
Код:
ID события: error.create.datalog.file
java.io.IOException: Too many open files
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at ru.bitel.bgbilling.kernel.base.server.datalog.hourly.HourlyLogFileUtils.getNextFileToWrite(HourlyLogFileUtils.java:236)
at ru.bitel.bgbilling.kernel.base.server.datalog.hourly.HourlyDataLogEntry.<init>(HourlyDataLogEntry.java:39)
at ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLogEntry.<init>(DhcpHourlyDataLogEntry.java:20)
at ru.bitel.bgbilling.modules.inet.dhcp.DhcpHourlyDataLogger.newEntry(DhcpHourlyDataLogger.java:30)
at ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLogger.newEntry(DhcpHourlyDataLogger.java:1)
at ru.bitel.bgbilling.kernel.base.server.datalog.hourly.HourlyDataLogger.getWriter(HourlyDataLogger.java:128)
at ru.bitel.bgbilling.kernel.network.dhcp.DhcpListenerWorkerContext.writeRecord(DhcpListenerWorkerContext.java:51)
at ru.bitel.bgbilling.kernel.network.dhcp.DhcpListenerWorker.runImpl(DhcpListenerWorker.java:130)
at ru.bitel.common.worker.WorkerTask.run(WorkerTask.java:86)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:46)
Причем у меня в /etc/security/limits.conf:
Код:
root soft nofile 32768
root hard nofile 32768
и:
# ulimit -a
Код:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 32768
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Что делать? В онлайне всего 250 человек.
Вот что показывает BGInetAccess:
Код:
./access_status.sh
Java Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM [1.7.0_65] /opt/java/jdk1.7.0_65/jre
Runtime name: 562@deneb.xxx.net
Java endorsed dirs: /lib/endorsed:/opt/java/jdk/lib/endorsed
OS: Linux 2.6.32-5-amd64 [amd64], file.encoding: ISO-8859-1, user.name: root
Heap sizes: current=92160k free=90654k max=1363456k
Kernel version 6.1.1007 / 04.12.2014 22:20:07
Inet version 6.1.635 / 04.12.2014 22:20:25
Radius:
accounting-requests per minute start: 0; stop: 0; update: 0
access-requests per minute accept: 0; reject: 0
ignore per minute access-request: 0; accounting-update: 0
Antispam ban count: 0; used per minute: 0
Started: 26.12.2014 09:49:14 Uptime: 1 d 01:36:51
Memory total: 141 033 472; max: 477 102 080; free: 9 471 288
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 8 272 320; peek: 8 281 856
Heap memory[PS Eden Space]: max: 177 733 632; used: 5 076 104; peek: 160 432 128
Heap memory[PS Survivor Space]: max: 524 288; used: 491 616; peek: 50 146 976
Heap memory[PS Old Gen]: max: 357 564 416; used: 125 997 392; peek: 265 408 128
Non-heap memory[PS Perm Gen]: max: 85 983 232; used: 31 988 736; peek: 31 988 736
Thread count: 481
Trees in cache: 0
Connections pool to Master status Idle: 7; Active: 0; maxActive: 300; maxIdle: 20
Вот BGInetAccess:
Код:
./accounting_status.sh
Java Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM [1.7.0_65] /opt/java/jdk1.7.0_65/jre
Runtime name: 721@deneb.xxx.net
Java endorsed dirs: /lib/endorsed:/opt/java/jdk/lib/endorsed
OS: Linux 2.6.32-5-amd64 [amd64], file.encoding: ISO-8859-1, user.name: root
Heap sizes: current=92160k free=90654k max=1363456k
Kernel version 6.1.1007 / 04.12.2014 22:20:07
Inet version 6.1.635 / 04.12.2014 22:20:25
Radius:
accounting-requests per minute start: 0; stop: 0; update: 608
access-requests per minute accept: 0; reject: 0
ignore per minute access-request: 0; accounting-update: 0
Started: 26.12.2014 09:49:12 Uptime: 1 d 01:39:17
Memory total: 75 497 472; max: 477 102 080; free: 21 695 360
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 7 279 616; peek: 7 294 336
Heap memory[PS Eden Space]: max: 178 257 920; used: 14 608 648; peek: 175 112 192
Heap memory[PS Survivor Space]: max: 524 288; used: 213 008; peek: 6 083 256
Heap memory[PS Old Gen]: max: 357 564 416; used: 38 980 456; peek: 71 215 528
Non-heap memory[PS Perm Gen]: max: 85 983 232; used: 30 985 136; peek: 30 985 136
Thread count: 106
Trees in cache: 0
Connections pool to Master status Idle: 20; Active: 0; maxActive: 300; maxIdle: 20
Сервер:
Код:
./server_status.sh
BGBillingServer v 6.1.1007 / 04.12.2014 22:20:07
Started: 26.12.2014 09:50:04 Uptime: 1 d 01:40:29
Memory total: 104 857 600; max: 477 102 080; free: 31 748 360
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 7 249 472; peek: 7 260 288
Heap memory[PS Eden Space]: max: 175 112 192; used: 10 341 688; peek: 141 557 760
Heap memory[PS Survivor Space]: max: 2 097 152; used: 1 162 784; peek: 18 870 960
Heap memory[PS Old Gen]: max: 357 564 416; used: 61 604 768; peek: 62 621 656
Non-heap memory[PS Perm Gen]: max: 268 435 456; used: 54 484 720; peek: 54 484 720
Thread count: 45
Connections pool to Master status Idle: 0; Active: 0; maxActive: 300; maxIdle: 20
Версии:
Код:
Сервер: вер. 6.1.1007 / 04.12.2014 22:20:07
os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.7.0_65
card: вер. 6.1.202 / 19.11.2014 14:51:32
inet: вер. 6.1.635 / 04.12.2014 22:20:25
npay: вер. 6.1.181 / 19.11.2014 14:51:58
reports: вер. 6.1.195 / 21.11.2014 19:30:55
subscription: вер. 6.1.29 / 27.08.2014 16:19:48
Линукс Debian на ядре 2.6.32-5-amd64