Wildfly stop processing requests needs to start every time

692 views
Skip to first unread message

Pubudu Ranathunga

unread,
Aug 8, 2021, 10:28:01 PM8/8/21
to WildFly
I have used wildfly to deploy an api. Currently its TPS is 20
It uses Spring boot 1.5 and mysql as DB
Issue  we face is application runs smoothly but after some time the api stops responding.
On the wildfly access log we cannot see any request getting hit. But From client application side we are sending requests. I tried to send message through local machine but no response. From the api side we can see api is working (log is being updated and some procedures are being called)

after monitoring wildfly I observe below
When Start
init.png 

After few days still working
maxused.png

After another time still working
maxused2.png

and this is Jconsole
maxusedjconsole.png


Finally Server has stopped responding
notworking.png

notworkingjconsole.png


Below is my data source configuration
<datasource jndi-name="java:/EAPG_CON" pool-name="EAPG_CON" statistics-enabled="true">
                    <connection-url>jdbc:mysql://localhost:3306/******?autoReconnect=true&amp;useSSL=false</connection-url>
                    <driver-class>com.mysql.jdbc.Driver</driver-class>
                    <driver>mysql</driver>
                    <pool>
                        <min-pool-size>20</min-pool-size>
                        <initial-pool-size>20</initial-pool-size>
                        <max-pool-size>200</max-pool-size>
                        <flush-strategy>AllGracefully</flush-strategy>
                    </pool>
                    <security>
                        <user-name>******</user-name>
                        <password>******</password>
                    </security>
                    <validation>
                        <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
                        <background-validation>true</background-validation>
                        <use-fast-fail>true</use-fast-fail>
                        <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
                    </validation>
                    <timeout>
                        <idle-timeout-minutes>2</idle-timeout-minutes>
                    </timeout>
                </datasource>

And this is my serve configuration on standalone.xml

<subsystem xmlns="urn:jboss:domain:undertow:6.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="true">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="default" tcp-keep-alive="true" socket-binding="http" max-post-size="50000000" always-set-keep-alive="false" record-request-start-time="true" no-request-timeout="10000" request-parse-timeout="2000" redirect-socket="https" enable-http2="true"/>
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <location name="/download" handler="download-dir"/>
                    <http-invoker security-realm="ApplicationRealm"/>
                </host>
            </server>
            <servlet-container name="default" default-session-timeout="60">
                <jsp-config/>
                <websockets/>
            </servlet-container>
            <handlers>
                <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
                <file name="download-dir" path="*************" directory-listing="true" follow-symlink="true"/>
            </handlers>
        </subsystem>

also below is my PC Spec

pc.png

Please help me to identify the issue.

Thank you.
Reply all
Reply to author
Forward
0 new messages