Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

300
Visualizações
PostgreSQL as datasource for WSO2 EI and APIM+IS

I faced with problem when I've set up PostegreSQL as master datasource for clusterization. Sometimes I see hanged sessions from WSO2 components which lock objects in database. Because of this arise inactive scheduled tasks, problems with auth, etc.

Could you help me please with configuration of PostgreSQL? I guess I have to specify some session timeout property or something other parameter.

Below part of configuration for connection to PostgreSQL:

<configuration>
    <url>jdbc:postgresql://xxx.xxx.xxx.xxx:xxxx/yyyy_db</url>
    <username>username</username>
    <password>password</password>
    <driverClassName>org.postgresql.Driver</driverClassName>
    <maxActive>50</maxActive>
    <maxWait>60000</maxWait>
    <testOnBorrow>true</testOnBorrow>
    <validationInterval>30000</validationInterval>
    <defaultAutoCommit>true</defaultAutoCommit>
</configuration>

Kind Regards,

Kirill Levitskiy

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I found the solution. There should be changed 'testOnBorrow' to false. It is nessesary, because I've removed ValidationQuery and InitValidation options before, but forgot about testOnBorrow.

Database configuration should look like this:

<configuration>
    <url>jdbc:postgresql://xxx.xxx.xxx.xxx:xxxx/yyyy_db</url>
    <username>username</username>
    <password>password</password>
    <driverClassName>org.postgresql.Driver</driverClassName>
    <maxWait>60000</maxWait>
    <testOnBorrow>false</testOnBorrow>
    <validationInterval>30000</validationInterval>
    <defaultAutoCommit>true</defaultAutoCommit>
</configuration>
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda