forum.bitel.ru http://forum.bitel.ru/ |
|
Не тарифицируется сессия автоматически http://forum.bitel.ru/viewtopic.php?f=6&t=8379 |
Страница 1 из 1 |
Автор: | Yagoda [ 23 авг 2013, 10:45 ] |
Заголовок сообщения: | Не тарифицируется сессия автоматически |
В логах BGRadiusVoip: Цитата: /BGRadiusVoip/log# cat error.log radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at java.lang.reflect.Constructor.newInstance(Constructor.java:513) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.Util.getInstance(Util.java:386) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1064) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at bitel.billing.server.contract.bean.BalanceUtils.setContractAccount(BalanceUtils.java:236) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at bitel.billing.server.voiceip.bean.VoiceIpSessionUtils.setContractAccountFromSession(VoiceIpSessionUtils.java:44) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnectionImpl(VoiceIpNasConnection.java:93) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnection(VoiceIpNasConnection.java:44) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:1170) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:1) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accountingRequest(RadiusProcessor.java:505) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.accountingRequest(RadiusListenerWorker.java:481) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.processAccountingRequest(RadiusListenerWorker.java:271) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.processPacket(RadiusListenerWorker.java:242) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.runImpl(RadiusListenerWorker.java:135) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.common.worker.WorkerTask.run(WorkerTask.java:86) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at java.lang.Thread.run(Thread.java:662) radius 08-23/15:27:03 ERROR [rdsLstnr-p-5-t-6] LoggingPrintStream - at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40) Запускаю вручную - считается, наработка заносится. Help me! |
Автор: | stark [ 23 авг 2013, 11:59 ] |
Заголовок сообщения: | Re: Не тарифицируется сессия автоматически |
Версия? |
Автор: | stark [ 23 авг 2013, 12:05 ] |
Заголовок сообщения: | Re: Не тарифицируется сессия автоматически |
Нужен вывод show innodb status И судя пол stack trace у вас радиус не совпадает не с последней версией 5.2 не с 6.0 . Лучше обновиться |
Автор: | Yagoda [ 10 сен 2013, 09:11 ] |
Заголовок сообщения: | Re: Не тарифицируется сессия автоматически |
BGRadiusVoip - 6.0_166 Сервер: вер. 6.0 сборка 1529 от 25.06.2013 02:11:59 os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.6.0_38 bill вер. 6.0 сборка 323 от 31.05.2013 13:55:16 card вер. 6.0 сборка 216 от 21.06.2013 20:36:07 dba вер. 6.0 сборка 162 от 31.05.2013 13:55:38 inet вер. 6.0 сборка 1217 от 07.08.2013 20:37:11 ipn вер. 6.0 сборка 264 от 31.05.2013 13:56:20 npay вер. 6.0 сборка 215 от 31.05.2013 13:56:58 phone вер. 6.0 сборка 282 от 31.05.2013 13:57:03 rentsoft вер. 6.0 сборка 57 от 31.05.2013 13:57:33 reports вер. 6.0 сборка 204 от 31.05.2013 13:57:34 ru.bitel.bgbilling.plugins.crm вер. 6.0 сборка 211 от 31.05.2013 13:57:05 voiceip вер. 6.0 сборка 225 от 06.08.2013 19:53:48 show innodb status: Код: *************************** 1. row ***************************
Type: InnoDB Name: Status: ===================================== 130824 21:25:16 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 17 seconds ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 13726176, signal count 13406553 Mutex spin waits 0, rounds 709989747, OS waits 10329516 RW-shared spins 1174704, OS waits 390911; RW-excl spins 3205412, OS waits 454686 ------------------------ LATEST DETECTED DEADLOCK ------------------------ 130824 19:32:03 *** (1) TRANSACTION: TRANSACTION 1 2665739631, ACTIVE 0 sec, process no 2403, OS thread id 139833664968448 fetching rows mysql tables in use 1, locked 1 LOCK WAIT 3 lock struct(s), heap size 368, 2 row lock(s) MySQL thread id 1552395, query id 855486269 192.168.80.182 wifi Updating UPDATE wifi_cl SET old_test=UNIX_TIMESTAMP() WHERE ip="192.168.249.202" AND mac="e0:63:e5:22:61:29" *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 246 page no 3 n bits 128 index `PRIMARY` of table `bgbilling`.`wifi_cl` trx id 1 2665739631 lock_mode X waiting Record lock, heap no 15 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 80000926; asc &;; 1: len 6; hex 00018b4dce63; asc M c;; 2: len 7; hex 00000034f811d7; asc 4 ;; 3: len 8; hex 3434393933393833; asc 44993983;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 80000000523c1aaf; asc R< ;; *** (2) TRANSACTION: TRANSACTION 1 2665739583, ACTIVE 0 sec, process no 2403, OS thread id 139834983663360 starting index read, thread declared inside InnoDB 493 mysql tables in use 2, locked 2 222 lock struct(s), heap size 30704, 4910 row lock(s), undo log entries 4678 MySQL thread id 1387745, query id 855486225 localhost 127.0.0.1 bill preparing UPDATE agent SET wifi_c=0 WHERE cid NOT IN (SELECT cid FROM wifi_cl WHERE old_test > (UNIX_TIMESTAMP()-300)) *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 246 page no 3 n bits 128 index `PRIMARY` of table `bgbilling`.`wifi_cl` trx id 1 2665739583 lock mode S locks rec but not gap Record lock, heap no 15 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 80000926; asc &;; 1: len 6; hex 00018b4dce63; asc M c;; 2: len 7; hex 00000034f811d7; asc 4 ;; 3: len 8; hex 3434393933393833; asc 44993983;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 80000000523c1aaf; asc R< ;; Record lock, heap no 44 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 80001273; asc s;; 1: len 6; hex 00016ccf943b; asc l ;;; 2: len 7; hex 8000000109012e; asc .;; 3: len 8; hex 3136373435323731; asc 16745271;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 800000005236677f; asc R6g ;; Record lock, heap no 52 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 80002435; asc $5;; 1: len 6; hex 00016b60b2b4; asc k` ;; 2: len 7; hex 8000000109012e; asc .;; 3: len 8; hex 3638303638363532; asc 68068652;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 8000000052360d26; asc R6 &;; Record lock, heap no 56 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 80001397; asc ;; 1: len 6; hex 0000ec9e9852; asc R;; 2: len 7; hex 8000001afe012e; asc .;; 3: len 8; hex 3634313937363434; asc 64197644;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 80000000521db453; asc R S;; *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 246 page no 3 n bits 128 index `PRIMARY` of table `bgbilling`.`wifi_cl` trx id 1 2665739583 lock mode S locks rec but not gap waiting Record lock, heap no 54 PHYSICAL RECORD: n_fields 9; compact format; info bits 0 0: len 4; hex 8000038f; asc ;; 1: len 6; hex 000107793576; asc y5v;; 2: len 7; hex 8000000136012e; asc 6 .;; 3: len 8; hex 3131353635323330; asc 11565230;; 4: len 8; hex 8000000000000000; asc ;; 5: len 8; hex 8000000000000000; asc ;; 6: SQL NULL; 7: SQL NULL; 8: len 8; hex 800000005222d9a6; asc R" ;; *** WE ROLL BACK TRANSACTION (1) ------------ TRANSACTIONS ------------ Trx id counter 1 2677731775 Purge done for trx's n:o < 1 2677727817 undo n:o < 0 0 History list length 1684 ... truncated... -TRANSACTION 1 2677729099, not started, process no 2403, OS thread id 139834963298048 MySQL thread id 1578325, query id 866574985 localhost agent ****** ---TRANSACTION 1 2677715095, not started, process no 2403, OS thread id 139837771106048 MySQL thread id 6, query id 866573839 localhost 127.0.0.1 bill -------- FILE I/O -------- I/O thread 0 state: waiting for i/o request (insert buffer thread) I/O thread 1 state: waiting for i/o request (log thread) I/O thread 2 state: waiting for i/o request (read thread) I/O thread 3 state: waiting for i/o request (write thread) Pending normal aio reads: 0, aio writes: 0, ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0 Pending flushes (fsync) log: 0; buffer pool: 0 526864 OS file reads, 290199782 OS file writes, 962078 OS fsyncs 2.18 reads/s, 16384 avg bytes/read, 945.65 writes/s, 2.41 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 65, seg size 67, 77738 inserts, 77738 merged recs, 34940 merges Hash table size 2212699, node heap has 5158 buffer(s) 3588.61 hash searches/s, 3913.83 non-hash searches/s --- LOG --- Log sequence number 200 4245877953 Log flushed up to 200 4245862385 Last checkpoint at 200 4059956335 0 pending log writes, 0 pending chkp writes 288849329 log i/o's done, 939.06 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total memory allocated 1266087826; in additional pool allocated 16776704 Dictionary memory allocated 2693592 Buffer pool size 65536 Free buffers 20 Database pages 60358 Modified db pages 7497 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages read 1617193, created 128641, written 4026971 2.18 reads/s, 0.65 creates/s, 15.12 writes/s Buffer pool hit rate 1000 / 1000 -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue 1 read views open inside InnoDB Main thread process no. 2403, id 139835282646784, state: sleeping Number of rows inserted 52991132, updated 328626443, deleted 50736178, read 50811755739 409.39 inserts/s, 1060.76 updates/s, 398.86 deletes/s, 76668.20 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================ |
Автор: | stark [ 27 сен 2013, 13:17 ] |
Заголовок сообщения: | Re: Не тарифицируется сессия автоматически |
Лучше для начала обновитесь. |
Автор: | Yagoda [ 04 окт 2013, 07:19 ] |
Заголовок сообщения: | Re: Не тарифицируется сессия автоматически |
Все решилось правкой тарифов и принудительным выставлением направления (request.setFlag). |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |