system background:
java spring - hibernate
db is vertica 7.0
setup:
several development pc ( windows )
1 pc as webserver ( linux )
1 pc as db server ( linux )
problem:
once we deployed the system in the web server using tomcat, connection to the db server is very slow, it takes about 30 secs to connect and query, but we dont have this issue in our development pc using eclipse tomcat.
what we tried to do:
1. we deployed the system in the db server...and it works fine.
2. created a simple java to connect to the db server
- if deployed in web server...it takes around 7 secs to connect to vertica db
- if deployed in db server...works fine.
3. installed mysql in the db server for comparison
- deployed the system in web server and it works fine. ( to rule our network issue )
we isolated the cause to the DAO getResultList part of the code:
Time: 2014-09-09_16:51:26.156 Class: TestDaoImpl Message: START DAO IMPL
Time: 2014-09-09_16:51:26.163 Class: TestDaoImpl Message: START getCriteriaBuilder
Time: 2014-09-09_16:51:26.163 Class: TestDaoImpl Message: END getCriteriaBuilder
Time: 2014-09-09_16:51:26.163 Class: TestDaoImpl Message: START createQuery
Time: 2014-09-09_16:51:26.165 Class: TestDaoImpl Message: END createQuery
Time: 2014-09-09_16:51:26.165 Class: TestDaoImpl Message: START from
Time: 2014-09-09_16:51:26.165 Class: TestDaoImpl Message: END from
Time: 2014-09-09_16:51:26.166 Class: TestDaoImpl Message: START select
Time: 2014-09-09_16:51:26.166 Class: TestDaoImpl Message: END select
Time: 2014-09-09_16:51:26.166 Class: TestDaoImpl Message: START getResultList
Time: 2014-09-09_16:51:56.216 Class: TestDaoImpl Message: END getResultList
Time: 2014-09-09_16:51:56.216 Class: TestDaoImpl Message: EXIT DAO IMPL
question:
is there a special configuration?
is it a jdbc issue? something we need to set?
why is it slow in web server only?
any help is greatly appreciated.
Thank You
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.