[WebSphere8 30分钟后出现500个内部服务器错误

问题描述 投票:0回答:1

我开发了一个Spring Batch应用程序,并将其托管在企业WebSphere 8.5.15服务器中。此应用程序的一些其余端点用于执行不同的作业,这些作业基本上对存储过程进行调用并执行多个数据库查询。

我使用curl这样称呼端点:

curl --insecure --request GET 'https://mycorp.server.com:1443/batch/api/job/job1?odate=050820' 

执行30分钟后,我得到以下响应:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>

<head>
    <title>500 Internal Server Error</title>
</head>

<body>
    <h1>Internal Server Error</h1>
    <p>The server encountered an internal error or
        misconfiguration and was unable to complete
        your request.</p>
    <p>Please contact the server administrator at
        [email protected] to inform them of the time this error occurred,
        and the actions you performed just before this error.</p>
    <p>More information about this error may be available
        in the server error log.</p>
    <p>Additionally, a 500 Internal Server Error
        error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body>

</html>

我已尝试执行多次,在处理请求30分钟后始终收到相同的错误“ 500 Internal Server Error”。在日志文件中,一切似乎都还可以,没有错误或异常的报告。

spring-batch websphere-8
1个回答
0
投票

这是服务器偶尔无法正确响应的常见情况(500错误)。您应该通过告诉您的程序在出现错误时休眠几秒钟来解决此问题,然后根据需要继续对服务器的任何调用。本质上,只要承认您会遇到此类问题并尽力解决这些问题即可。

© www.soinside.com 2019 - 2024. All rights reserved.