473,836 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running two postmasters on one host: could not create semaphores

I have a requirement to run two separate postmasters on the one machine. It
looks like they compete for resources (semaphores) so won't run
concurrently.

I compiled twice, specifying different ports and home directories:
./configure --with-java --with-pgport=6100
--prefix=/usr/local/teprpg01
make
etc...

gmake distclean
./configure --with-java --with-pgport=6110
--prefix=/usr/local/teqapg01
etc...

I can start either of the installed postmasters, but when I try to start
them at the same time using the commands:
/usr/local/teprpg01/bin/postmaster -D /usr/local/teprpg01/data
logfile 2>&1 & /usr/local/teqapg01/bin/postmaster -D /usr/local/teqapg01/datalogfile 2>&1 &


I get the error:

FATAL: could not create semaphores: No space left on device
DETAIL: Failed system call was semget(6100001, 17, 03600).
HINT: This error does *not* mean that you have run out of disk
space.
It occurs when either the system limit for the maximum
number of semaphore sets (SEMMNI),
Or the system wide maximum number of semaphores (SEMMNS), would be
exceeded. You need to raise
The respective kernel parameter. Alternatively, reduce PostgreSQL's
consumption of semaphores
By reducing its max_connections parameter (currently 40).
The PostgreSQL documentation contains more information about
configuring your system for PostgreSQL.

Is it a shortage of semaphores, or a competition problem between the
postmasters? Is there something else I need to do?

Thanks in advance for any help,
Edwin New
Analyst Programmer
Toll - Integrated Business Systems
Nov 23 '05 #1
1 4717
Edwin New <ed*******@toll .com.au> writes:
I get the error: FATAL: could not create semaphores: No space left on device
DETAIL: Failed system call was semget(6100001, 17, 03600).
HINT: This error does *not* mean that you have run out of disk
space.
It occurs when either the system limit for the maximum
number of semaphore sets (SEMMNI),
Or the system wide maximum number of semaphores (SEMMNS), would be
exceeded. You need to raise
The respective kernel parameter. Alternatively, reduce PostgreSQL's
consumption of semaphores
By reducing its max_connections parameter (currently 40).
The PostgreSQL documentation contains more information about
configuring your system for PostgreSQL. Is it a shortage of semaphores, or a competition problem between the
postmasters? Is there something else I need to do?


Isn't the HINT clear enough? Raise SEMMNI and/or SEMMNS.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3017
by: FiLH | last post by:
Hello, I would like to know if posix semaphores are inter processes or just semaphores for threads inside the same process. I have not seen it defined in the posix specification I have found, but I have maybe missed something. Thanks in advance.
4
1387
by: louise raisbeck | last post by:
Hi I know I may be repeating some past questions but i wasnt sure if i added on to these if they would appear in the 'new list'! I have IIS 5 installed, IE 6 and visual studio .net 2003. When i create an aspx page under iis, when i try to run it via localhost i get the 'Open/Save' screen, i.e. it is not running the code but just ends up opening it in visual studio. I went to the downloads (thinking i may not have installed the SDK for .net) but...
1
1197
by: homer | last post by:
Hello, everybody, When I try to create an ASP.NET 1.1 Application, I got: VS.Net has detected that the Specified Web Server Is Not Running ASP.NET Version 1.1" Error Message. I am running VS.net 2003 Pro on w2k. My web server is the local IIS5. I have my windows and IIS running for a while and VS.Net is a new install. I have run aspnet_regiis –I, and regsvr32 aspnet_isapi.dll under commend
3
1801
by: Oenone | last post by:
In VB6, it's possible to create a project with a class library within it. The project can then be run with F5, and it sits and waits for an external process to create an instance of one of its objects. This is extremely useful, as it allows me (for example) to create a PlugIn class running in source, and call it from a host application that is running as an executable. In VB.NET, I'm not allowed to run class library projects, I simply...
5
1487
by: Shanmugasundaram Doraisamy | last post by:
Dear Group, We have a java front-end for postgresql 3.4. When we monitor the system usage using top we find couple of postmasters taking up close to 90% of the CPU time in total. I would like to know which are the queries that are currently running at this point of time. How do we do this?? Another thing that I have noticed is that when I give df -h, I find there is a partition /dev/shm which is somewhere in the range of about 128MB...
3
2606
by: Michel | last post by:
Hi, I wrote an app in .Net and I whant only 1 instance of this app open for the user; the user open my app, do some works and try to open another instance of my app, I whant to show a message to user to inform him that only one instance is permit and then close the second instance after that. I am able to do this when the user run the application on his PC whit this : Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName) ...
8
4776
by: Ravi | last post by:
Hi to all, There is a start button in my page. if user clicks on that then a php program should start and should listen on a particular port. and also user should able to do other tasks on that page. Is there any way to run php file as background process. Or is there any to run multi thread in php.
3
1265
by: bangeye | last post by:
Tribe, I have need to use ASP.NET to connect to an already running application (non web) that will be running on the same server as IIS. Start MyServerApp, MyServerApp is now running - doing work for me. ASP.NET page request comes in, Create on the fly object of some sort that can talk to MyServerApp,
5
2707
by: davidcollins001 | last post by:
Hi, Firstly please excuse the long ramblingness. I need some conceptual help, I am trying to make two programs that are exactly the same but take it in turns to execute something, so the output looks something like the following: setup semaphores, etc . . proc 1 doing first thing proc 2 doing next thing
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9654
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3094
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.