Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
66 views
in Technique[技术] by (71.8m points)

java - Set maximumPoolSize and minimumIdle based on processor and memory server

i have a 4 JVM applications running into 4 servers. (one instance/server)

My Oracle DB opens only for 300 process (max).

the default pool connection size is 10 (since i didn't changed before); du to many requests to my Oracle DB, i got exceptions like

"Unable to aquire JDBC connection"

HikariPool-1 - Connection is not available, request timed out after 30000ms

IO Error: Got minus one from a read call

I could see this notice but i couldn't find the best configuration for my params : Thread pools need to be sized with the total number of hardware processor cores in mind

My servers are based on this configuration (same configuration *4) :

memoire size : grep MemTotal /proc/meminfo 24Go

processor number : cat /proc/cpuinfo 6

i want to increase those two params in my Spring boot application to avoid exceptions and do not explose the memory.

# HikariCP settings
     spring.datasource.hikari.minimumIdle= **
     spring.datasource.hikari.maximumPoolSize= **

what will be those params ?

question from:https://stackoverflow.com/questions/65915302/set-maximumpoolsize-and-minimumidle-based-on-processor-and-memory-server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...