フォーラム forum
homechevron_rightフォーラム

GroupSessionについての自由な情報交換の場としてご利用ください

GroupSessionフォーラム:投稿一覧

 
フォーラム:00_インストール・設定
ショートメールの送信時のエラーについて (続き)
[ 1609 ] ショートメールの送信時のエラーについて (続き)

「サーバーが混んでいます」
org.h2.jdbc.JdbcSQLException: Deadlock detected. The current transaction was rolled back. Details:
Session #61 (user: GSESSION) is waiting to lock PUBLIC.SML_SMEIS while locking PUBLIC.SML_JMEIS (shared).
Session #41 (user: GSESSION) is waiting to lock PUBLIC.SML_JMEIS while locking PUBLIC.SML_SMEIS (exclusive). [40001-75]
at org.h2.message.Message.getSQLException(Message.java:103)
at org.h2.message.Message.getSQLException(Message.java:114)
at org.h2.message.Message.getSQLException(Message.java:77)
at org.h2.table.TableData.doLock(TableData.java:402)
at org.h2.table.TableData.lock(TableData.java:351)
at org.h2.command.dml.Insert.update(Insert.java:95)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:205)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:137)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:126)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at jp.groupsession.v2.sml.dao.SmlJmeisDao.insert(SmlJmeisDao.java:166)
at jp.groupsession.v2.sml.sml020kn.Sml020knBiz.insertMailData(Sml020knBiz.java:636)
at jp.groupsession.v2.sml.sml020kn.Sml020knAction.__doSend(Sml020knAction.java:253)
at jp.groupsession.v2.sml.sml020kn.Sml020knAction.executeSmail(Sml020knAction.java:104)
at jp.groupsession.v2.sml.AbstractSmlAction.executeAction(AbstractSmlAction.java:59)
at jp.groupsession.v2.struts.AbstractGsAction.execute(AbstractGsAction.java:123)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute

投稿者marumaru
最新書き込み2008/12/24 14:34:49
[ 1611 ] Re: ショートメールの送信時のエラーについて (続き)

誤って、別にスレッドを作ってしまいました。
すみませんでした。

(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at jp.co.sjts.util.http.filter.FilterEncoding.doFilter(FilterEncoding.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

投稿者marumaru
最新書き込み2008/12/24 14:36:04
[ 1612 ] Re: ショートメールの送信時のエラーについて (続き)

(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)

投稿者ショートメールの送信時のエラーについて (続き)
最新書き込み2008/12/24 14:36:19
[ 1613 ] Re: Re: ショートメールの送信時のエラーについて (続き)

自信はありませんが。
{catalina_home}/ webapps/gsession2/WEB-INF/conf/dataSource.xml

<maxActive>1</maxActive>
<maxIdle>1</maxIdle>

<maxActive>10</maxActive>
<maxIdle>4</maxIdle>
にしてみてはどうでしょうか?

投稿者snip
最新書き込み2008/12/24 19:36:53
[ 1614 ] Re: Re: Re: ショートメールの送信時のエラーについて (続き)

ご返答ありがとうございます。
お教え頂いた設定で、しばらく運用してみたいと思います。

> 自信はありませんが。
> {catalina_home}/ webapps/gsession2/WEB-INF/conf/dataSource.xml
> の
> <maxActive>1</maxActive>
> <maxIdle>1</maxIdle>
> を
> <maxActive>10</maxActive>
> <maxIdle>4</maxIdle>
> にしてみてはどうでしょうか?
>

投稿者marumaru
最新書き込み2008/12/25 12:40:00
[ 1615 ] Re: Re: Re: Re: ショートメールの送信時のエラーについて (続き)

<!-- 通常使用 -->
<datasource>
<id>GsDataSource</id>
<driverClassName>org.h2.Driver</driverClassName>
<username>gsession</username>
<password>gsession</password>
<defaultAutoCommit>false</defaultAutoCommit>
<defaultReadOnly>false</defaultReadOnly>
<maxActive>10</maxActive>
<maxIdle>4</maxIdle>
<maxWait>3000</maxWait>
<validationQuery></validationQuery>
こちらの
<maxActive>10</maxActive>
<maxIdle>4</maxIdle>
部分を
<maxActive>20</maxActive>
<maxIdle>8</maxIdle>
と修正でした。

採番用は、
<maxActive>1</maxActive>
<maxIdle>1</maxIdle>
のままでないと誤作動しますね。

投稿者snip
最新書き込み2008/12/26 10:24:16
[ 1617 ] Re: Re: Re: Re: Re: ショートメールの送信時のエラーについて (続き)

お疲れ様です。
検証用のサーバーを構築して、これから動作テストするところでした。
お教えいただいた設定箇所を変更して、やってみます。
ありがとうございました。

> こちらの
> <maxActive>10</maxActive>
> <maxIdle>4</maxIdle>
> 部分を
> <maxActive>20</maxActive>
> <maxIdle>8</maxIdle>
> と修正でした。
>
> 採番用は、
> <maxActive>1</maxActive>
> <maxIdle>1</maxIdle>
> のままでないと誤作動しますね。

投稿者marumaru
最新書き込み2008/12/26 17:02:46
スレッドURLhttps://groupsession.jp/wbs/bulletin/bbs080.do?bbs010forumSid=1&threadSid=526
 
メールマガジン登録

vertical_align_top