Answer the question
In order to leave comments, you need to log in
Why does a weaker tomcat + postgres server work faster than a more powerful one?
Hello! Faced the same problem, maybe someone else has come across the same situation.
I'm doing the transfer of test and production servers of one project.
A set of software on both servers (absolutely identical in terms of installation versions and repositories):
- Ubuntu 14.04.02 lts
- tomcat 7
- oracle jvm 8
- postgres 9.3
plus all this on the test:
- maven 3
- jenkins
- svn
- trac
And now the most interesting:
The test server is located on Citrix XenServer 6.2.0, and the combat server is on VMware VMWare ESXI 5.1.0
Test configuration: 2 prots, 4 GB RAM, 20 GB hdd
Combat configuration: 4 prots, 8 GB RAM, 50 GB hdd
On the test, one heavyweight function (unloading a heavyweight table from postgres) runs on average 10 seconds faster than on the production one.
In JAVA_OPTS, tomcat on the test server set 2GB for the machine, and on the combat server - 4 GB.
What am I doing wrong? Thanks in advance, everyone.
Answer the question
In order to leave comments, you need to log in
The test server is located on Citrix XenServer 6.2.0, and the production server is on VMware VMWare ESXI 5.1.0
On the combat server, the load still comes, probably? Locks are installed in the database and all that ...
In general, check how fast the disks work on both machines (at least through ioping and dd to begin with)
DBMS usually rest against a disk. Maybe in a more powerful server the disk is slow, or is it used in parallel by several more virtual machines?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question