Код:
[root@localhost /]# /opt/apache-activemq-5.4.2/bin/activemq status
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.JAVA_HOME)
INFO: Invoke the following command to create a configuration file
/opt/apache-activemq-5.4.2/bin/activemq setup [ /etc/default/activemq | /root/.JAVA_HOME ]
INFO: Using java '/usr/bin/java'
ActiveMQ is running (pid '10637')
[root@localhost /]# /etc/rc.d/init.d/bgbilling restart
Stopping bgbilling: process not found [FAILED]
java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at bitel.billing.server.Server.executeCommand(Server.java:311)
at bitel.billing.server.Server.main(Server.java:262)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ru.bitel.common.bootstrap.Boot.boot(Boot.java:129)
at ru.bitel.common.bootstrap.Boot.main(Boot.java:178)
Starting bgbilling: [ OK ]
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:01
Memory total: 16 056 320; max: 259 522 560; free: 11 616 360
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 587 712; peek: 1 587 712
Heap memory[Eden Space]: max: 71 630 848; used: 234 584; peek: 4 456 448
Heap memory[Survivor Space]: max: 8 912 896; used: 0; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 205 376; peek: 4 205 376
Non-heap memory[Perm Gen]: max: 67 108 864; used: 16 792 392; peek: 16 792 392
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 16
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:08
Memory total: 16 056 320; max: 259 522 560; free: 8 220 688
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 744 448; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 2 951 560; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 185 016; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 699 056; peek: 4 699 056
Non-heap memory[Perm Gen]: max: 67 108 864; used: 40 078 560; peek: 40 078 560
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 16
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:10
Memory total: 16 056 320; max: 259 522 560; free: 7 615 432
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 758 144; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 3 847 344; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 0; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 593 544; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 45 873 112; peek: 46 136 856
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:11
Memory total: 16 056 320; max: 259 522 560; free: 9 295 464
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 773 312; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 2 429 048; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 85 624; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 246 184; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 51 192 704; peek: 51 192 704
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:13
Memory total: 16 056 320; max: 259 522 560; free: 7 094 680
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 754 880; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 4 382 264; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 93 792; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 485 584; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 55 360 968; peek: 55 360 968
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:14
Memory total: 16 056 320; max: 259 522 560; free: 11 244 560
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 700 992; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 125 336; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 180 672; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 507 816; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 59 920 688; peek: 59 920 688
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:16
Memory total: 16 056 320; max: 259 522 560; free: 8 818 168
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 693 248; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 2 955 664; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 148 200; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 4 136 352; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 65 065 312; peek: 65 065 312
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling (pid 6946) is running...
[ OK ]
BGBillingServer v 5.2 build 820 from 03.08.2011 19:29:43
Started: 07.10.2011 10:05:35 Uptime: 0 d 00:00:18
Memory total: 16 056 320; max: 259 522 560; free: 12 295 424
Memory pools:
Non-heap memory[Code Cache]: max: 33 554 432; used: 1 694 656; peek: 1 881 920
Heap memory[Eden Space]: max: 71 630 848; used: 142 416; peek: 4 521 984
Heap memory[Survivor Space]: max: 8 912 896; used: 0; peek: 524 288
Heap memory[Tenured Gen]: max: 178 978 816; used: 3 620 768; peek: 4 986 704
Non-heap memory[Perm Gen]: max: 67 108 864; used: 67 077 808; peek: 67 108 848
Non-heap memory[Perm Gen [shared-ro]]: max: 10 485 760; used: 6 102 336; peek: 6 102 336
Non-heap memory[Perm Gen [shared-rw]]: max: 12 582 912; used: 7 553 056; peek: 7 553 056
Thread count: 13
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20
[root@localhost /]# /etc/rc.d/init.d/bgbilling status
bgbilling dead but pid file exists
process not found [FAILED]
java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at bitel.billing.server.Server.executeCommand(Server.java:311)
at bitel.billing.server.Server.main(Server.java:262)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ru.bitel.common.bootstrap.Boot.boot(Boot.java:129)
at ru.bitel.common.bootstrap.Boot.main(Boot.java:178)
сервер activeMQ удалось запустить mysql установлен коннект к базе по 127,0,0,1 есть.
здесть сначала проверяю статус activeMQ затем перезапускаю сервер bgbilling и проверяю статус сразу же.все вроде нормально сервер запустился и работает,но недолго и через секунд 15 падает и выписывает последнее сообщение.