私のJavaコードでは、大量のデータを処理しています。そこで、コードをサーブレットとしてAppEngineのCronJobに移動しました。ある日はうまくいきます。データ量が増えると、cronジョブが機能せず、次のエラーメッセージが表示されます。
2012-09-26 04:18:40.627
'ServletName' 'MethodName': Inside SQLExceptionjava.sql.SQLRecoverableException:
Connection is already in use.
I 2012-09-26 04:18:40.741
This request caused a new process to be started for your application, and thus caused
your application code to be loaded for the first time. This request may thus take
longer and use more CPU than a typical request for your application.
W 2012-09-26 04:18:40.741
A problem was encountered with the process that handled this request, causing it to
exit. This is likely to cause a new process to be used for the next request to your
application. If you see this message frequently, you may be throwing exceptions during
the initialization of your application. (Error code 104)
この問題を処理する方法は?