Hi guys,
How can I know about the number of active
connections?? (not the maximum allowed, but the number
of open connections).
Regards,
Marcelo Pereira
Brasil
_______________ _______________ _______________ _____
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html 3 26656
select count(*) from pg_stat_activit y;
for detailed info use:
select * from pg_stat_activit y;
On Mon, Sep 13, 2004 at 02:49:36PM -0300, MaRCeLO PeReiRA wrote: Hi guys,
How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections).
Regards,
Marcelo Pereira Brasil
_______________ _______________ _______________ _____ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
MaRCeLO PeReiRA wrote: Hi guys,
How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections).
If you have enough permission:
select count(*) from pg_stat_activit y;
Regards
Gaetano Mendola
Hi Elein,
Thanks!! It was exactly what I was looking for!!!
Regards,
Marcelo Pereira
Brasil
--- elein <el***@varlena. com> escreveu: select count(*) from pg_stat_activit y;
for detailed info use:
select * from pg_stat_activit y;
On Mon, Sep 13, 2004 at 02:49:36PM -0300, MaRCeLO PeReiRA wrote: Hi guys,
How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections).
Regards,
Marcelo Pereira Brasil
_______________ _______________ _______________ _____ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
_______________ _______________ _______________ __________
Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita diversão. Instale agora! http://br.download.yahoo.com/messenger/
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Harrison |
last post by:
We have the situation where it would be convenient if we
could support a large number (>1024, possibly in the 2000-3000
range) of client connections.
What are our options for this?
Many TIA,
Mark
--
|
by: TheOne |
last post by:
Hi I am trying to display on a web page number of visitors on the site. I am
doing this by increasing +1 in global.asax on Session_start and
subtracting -1 on Session_end. I am storing value in the
Application("numberOfVisitors"). It works fine but when I compare values to
number of ASP Applications "Sessions Active" under Windows 2003 performance
chart gives me different values. I am not sure why there is a difference,
and also if there...
|
by: caroh |
last post by:
Can anyone see whats wrong with this code:
The connections are remaining live in the database: and causing
"Timeout expired. The timeout period elapsed prior to obtaining a
connection from the pool" errors.
Try
'open the connection
myConnection.Open()
'run the query
|
by: Tull Clancey |
last post by:
Can anyone help me here? VB Net Application with an Access Database
connection (OLEDB), I need (in code) to be able to retrieve the number of
active connections on the database, maybe from more than one PC.
Anyone any ideas?
Cheers,
Tull.
|
by: matt.b.williams |
last post by:
I am wondering if there is a way to programmatically detect active
connections on a RAS server.
My situation is this. An app will be running on the RAS server. This
app will have a timer that runs constantly. On each tick, it will look
to see if any RAS connections have been established and will display
them. Any API's, registry entires, or other means by which I can do
this would be much appreciated.
Thanks in advance for any...
| |
by: Basel |
last post by:
Hi All!
I'm having a problem with a growing number of connections. my app
generates http requests and reads responses. the app creates large
number of threads (100 or more) that generates the requests, this is
the code:
ServicePointManager.DefaultConnectionLimit = 10;
ThreadFunction()
|
by: Naveen |
last post by:
How can we keep track of how many active users are using the application.
|
by: gazy2k4 |
last post by:
I'm writing a program that connects to MS SQL Server, on start up it clears some tables in one database, and repopulates them from another database. I would like this to only happen if there are no other connections to the database I'm clearing. Is there any way of checking the amount of active connections on a specfic database within code?
Checking active connections by user is also an option if thats the only way to do it as all...
|
by: kai |
last post by:
Hi,
I use VB 2008 as front end, SQL Server 2005/2008 as back end, I want
control number of cucurrent users log on to the database, I am trying to use
a stored procedure, but it did not work. Is this possible? Please help.
Thanks
Kai
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |