Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
vCenter Server Appliance fails with the error: FATAL: remaining connection slots are reserved for non-replication superuser connections (2039381)
Symptoms
- vCenter Server Appliance fails
- The VMware VirtualCenter Server service fails every few hours
- In the vpxd.log file, you see entries similar to:
2012-11-05T08:35:54.929Z [7F4044195720 error 'Default'] A database error occurred: ODBC error: (08001) - [unixODBC]FATAL: remaining connection slots are reserved for non-replication superuser connections
2012-11-05T08:35:54.929Z [7F4044195720 error 'vpxdvpxdMain'] [Init] Init failed: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)
Backtrace:
backtrace[00] rip 00007f403eefba84 Vmacore::System::Stacktrace::CaptureWork(unsigned int)
backtrace[01] rip 00007f403eddaae2 Vmacore::System::SystemFactoryImpl::CreateQuickBacktrace(Vmacore::Ref<Vmacore::System::Backtrace>&)
backtrace[02] rip 00007f403ed3bda5 Vmacore::Throwable::Throwable(std::string const&)
backtrace[03] rip 00007f40450f727f Vmomi::Fault::SystemError::Exception::Exception(std::string const&)
backtrace[04] rip 00007f40450e035f /usr/lib/vmware-vpx/vpxd(+0xdcc35f) [0x7f40450e035f]
backtrace[05] rip 00007f40450f5ca3 /usr/lib/vmware-vpx/vpxd(+0xde1ca3) [0x7f40450f5ca3]
backtrace[06] rip 00007f40450d8c03 /usr/lib/vmware-vpx/vpxd(+0xdc4c03) [0x7f40450d8c03]
backtrace[07] rip 00007f403ce73c36 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f403ce73c36]
backtrace[08] rip 00007f40450d7fe9 /usr/lib/vmware-vpx/vpxd(+0xdc3fe9) [0x7f40450d7fe9]
2012-11-05T08:35:54.931Z [7F4044195720 error 'Default'] Failed to intialize VMware VirtualCenter. Shutting down...
- In the postgresql.log files located at /storage/db/vpostgres/pg_log/, you see entries similar to:
1 tm:2012-11-05 08:35:54.412 UTC db:VCDB pid:32351 FATAL: remaining connection slots are reserved for non-replication superuser connections
1 tm:2012-11-05 08:35:54.928 UTC db:VCDB pid:32376 FATAL: remaining connection slots are reserved for non-replication superuser connections
1 tm:2012-11-05 08:35:55.005 UTC db:VCDB pid:32383 FATAL: remaining connection slots are reserved for non-replication superuser connections
Cause
Resolution
- Log in to the vCenter Server Appliance as the root user. The default password is vmware.
- Take a backup of the postgresql.conf file using this command.
cp /storage/db/vpostgres/postgresql.conf /storage/db/vpostgres/postgresql.conf.orig
- Open the postgresql.conf file using a text editor.
- Find the max_connections entry in the file and set its value to 250:
max_connections = 250
- Save and close the file.
- Reboot the vCenter Server Appliance for the changes to take affect.
Note: Increasing max_connections costs approximately 400 bytes of shared memory per connection slot and, in addition, the lock space. Each lock table slot uses approximately 270 bytes of shared memory, and there are max_locks_per_transaction * (max_connections + max_prepared_transactions) lock table slots.
Tags
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

