Hi Shadin,
I've never tried this myself, but I suspect it's because there is a lot of overhead when interacting with a database (GeoServer certainly can make a lot of calls to the database) and this is magnified if you increase the "distance" between the two servers.
What's the ping time between the two servers?
Cheers,
Jonathan
-----Original Message-----
From: Shadin [mailto:shadin__a@anonymised.com]
Sent: Friday, April 10, 2015 7:21 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GeoServer Slowly Requests to Remote DB
I need someone who's good at GeoServer & Networks to help me figure out what I'm missing here.
I have two servers, one for database (S1) and the other one for my web app & GeoServer (S2). Both inside network A. Application works fine on S2.
Retrieving WMS and GWC layers from S1 through GeoServer [http://privateIP:8081/geoserver/wms\] and [http://privateIP:8081/geoserver/gwc/service/wms\]
Now, I would like to take S2 out of Network A. So I disconnected it and plugged it again to a 4G internet modem. Then changed GeoServer stores IP addresses to public IP of S1, and Layers requests to the public IP address as well: [http://publicIP:8081/geoserver/wms\] and and [http://publicIP:8081/geoserver/gwc/service/wms\]
At this point, requesting layers became so unbelievably slow. I can see few tiles of the layers but it takes too long to load then failed with no result but pink tiles.
I couldn't figure out what causes this. Is it rough for GeoServer to request from a remote database? and what is the suggested solution in this case?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-Slowly-Requests-to-Remote-DB-tp5200724.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This message has been scanned for viruses by MailControl - www.mailcontrol.com
Click https://www.mailcontrol.com/sr/sIAQOm0PTevGX2PQPOmvUhStAXlT3N1zIyE8cltiqX1dV77wfvuoUgqo0+c1NIMRMnYB5vWrSTGrbIY9K1KtKg== to report this email as spam.
________________________________
HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.
HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099
________________________________