I try to launch the driving_distance function with a large network consisting of 100,000 edges. Every time I launch the query, the server closes the connection unexpectedly.
Any idea why? Is there a way to get a more precise error message?
I only get as message: "Server closed the connection unexpectedly. This probably means the server terminated abnormally before or while processing the request"
thanks
--
Ph D. Student Markus Innerebner
DIS Research Group - Faculty of Computer Science
Free University Bozen-Bolzano
I have seen that message and believe it is not related to pgRouting.
I cannot remember the exact situation, but I think vacuuming the database
was the solution.
I also may have mis-remembered this.
Worth
_____
From: pgrouting-users-bounces@lists.osgeo.org
[mailto:pgrouting-users-bounces@lists.osgeo.org] On Behalf Of Markus
Innerebner
Sent: Monday, January 17, 2011 12:59 PM
To: pgRouting users mailing list
Subject: [pgrouting-users] crash of driving_distance with large network
Hi all,
I try to launch the driving_distance function with a large network
consisting of 100,000 edges. Every time I launch the query, the server
closes the connection unexpectedly.
Any idea why? Is there a way to get a more precise error message?
I only get as message: "Server closed the connection unexpectedly. This
probably means the server terminated abnormally before or while
processing the request"
thanks
--
Ph D. Student Markus Innerebner
DIS Research Group - Faculty of Computer Science
Free University Bozen-Bolzano
What Worth mentions can be a solution.
I also remember cases when a vacuum (and logout/login?) solved such a problem.
But it can be also caused by pgRouting query.
I try to launch the driving_distance function with a large network
consisting of 100,000 edges. Every time I launch the query, the server
closes the connection unexpectedly.
Any idea why? Is there a way to get a more precise error message?
I only get as message: “Server closed the connection unexpectedly. This
probably means the server terminated abnormally before or while
processing the request”
thanks
–
Ph D. Student Markus Innerebner
DIS Research Group - Faculty of Computer Science
Free University Bozen-Bolzano
Yeah, if your query requires too much memory to assemble and solve the graph, this can cause that problem. You might be able to solve the problem by allocating more memory to postgresql.
-Steve W
On 1/17/2011 9:57 PM, Daniel Kastl wrote:
What Worth mentions can be a solution.
I also remember cases when a vacuum (and logout/login?) solved such a
problem.
But it can be also caused by pgRouting query.
I have seen that message and believe it is not related to pgRouting.
I cannot remember the exact situation, but I think vacuuming the
database was the solution.
I also may have mis-remembered this.
Worth
*From: * pgrouting-users-bounces@lists.osgeo.org
<mailto:pgrouting-users-bounces@lists.osgeo.org>
[mailto:pgrouting-users-bounces@lists.osgeo.org
<mailto:pgrouting-users-bounces@lists.osgeo.org>] *On Behalf Of
*Markus Innerebner
*Sent:* Monday, January 17, 2011 12:59 PM
*To:* pgRouting users mailing list
*Subject:* [pgrouting-users] crash of driving_distance with large
network
Hi all,
I try to launch the driving_distance function with a large network
consisting of 100,000 edges. Every time I launch the query, the server
closes the connection unexpectedly.
Any idea why? Is there a way to get a more precise error message?
I only get as message: "Server closed the connection unexpectedly. This
probably means the server terminated abnormally before or while
processing the request"
thanks
--
Ph D. Student Markus Innerebner
DIS Research Group - Faculty of Computer Science
Free University Bozen-Bolzano
Yeah, if your query requires too much memory to assemble and solve the graph, this can cause that problem. You might be able to solve the problem by allocating more memory to postgresql.
-Steve W
On 1/17/2011 9:57 PM, Daniel Kastl wrote:
What Worth mentions can be a solution.
I also remember cases when a vacuum (and logout/login?) solved such a
problem.
But it can be also caused by pgRouting query.
I try to launch the driving_distance function with a large network
consisting of 100,000 edges. Every time I launch the query, the server
closes the connection unexpectedly.
Any idea why? Is there a way to get a more precise error message?
I only get as message: “Server closed the connection unexpectedly. This
probably means the server terminated abnormally before or while
processing the request”
thanks
–
Ph D. Student Markus Innerebner
DIS Research Group - Faculty of Computer Science
Free University Bozen-Bolzano
Just for your interests:
I found out the reason of the crash. the id of the edges and vertexes
exceed the range of int4. I used as data type integer.
Thanks for posting this follow up.
So for performance, if I'm not mistaken, it is best to renumber all you id to start with 1 (one) and to be sequential, ie: avoid large gaps in the numbering. If you need to preserve the original ids then create new columns and to renumber into. Then use the renumbered columns when passing data to pgRouting. This obviously does not help with the int4 overflow issue if you have a huge number of ids.