psql: FATAL: remaining connection slots are reserved for non-replication superuser connections
"What version of XNAT are you using? 1.6.5 will include Hibernate caching which will dramatically reduce the number of sql statements being run.
1. 100 should be more then adequate. One artififact of XNAT development is that it actually maintains 2 separate connection pools (one for older XNAT code defined in InstanceSettings.xml, and one for newer Hibernate based code defined in services.properties). Some day will get back to consolidate the two. So, when figuring out the number of connections XNAT may use, it is the addition of those two configurations. But, I’ve never really needed to modify any of the default connection settings (XNAT or postgres) except in situations where I was specifically doing load testing and through huge data at it.
2. Not sure why the timing was now. The archiving process is one of the most expensive operations on the XNAT server. Especially when you add in the AutoRun pipeline which remotely builds and uploads jpeg snapshots for each scans. But, even with that in mind, it seems weird that it would max out on that. Is there something else on this server that may be using postgresql. Even open psql or PgAdmin connections.
3. XNAT uses connection pooling to manage its database connections. Once a connection is open it will stay open and be reused (connection startup time is actually quite expensive over the course of the application). So, No, XNAT will not close connections when it is done with them. They will remain open (and should remain open) until tomcat is restarted.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
Try running this query in psql:
select* from pg_stat_activity;
You can also try:
select distinct(usename) from pg_stat_activity;
What you want to see if someone else has started taking connections from the database. There’s really no way that XNAT should run out of connections with only 2 or 3 people connected.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
psql: FATAL: remaining connection slots are reserved for non-replication superuser connections
"