Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Problem with postgre connections
Old 06-28-2006, 10:58 AM Problem with postgre connections
Junior Talker

Posts: 2
Trades: 0
Hello!

I'm new in the forum and I'm looking for help.

I'm working on an intranet, using Postgre 8.0, Windows 2000 and ASP. Lots of people uses this intranet and from time to time the connection limit (100 connections opened at the same time) exceeds.

After some tests I realized that when the code says 'connection.close' and 'set connection = nothing', the connection dont close imediatly. It takes more then 30 seconds for it to close, what gives time to the users to natigate em open more connections.

Anybody using postgre had the same problem? Any help will be apreciated.
mvg2007 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2006, 03:02 PM Re: Problem with postgre connections
Junior Talker

Posts: 2
Trades: 0
Anybody knows if theres a fixed amount of memory the postgre is allowed to use. If so, is it possible to raise this amount?
mvg2007 is offline
Reply With Quote
View Public Profile
 
Old 07-03-2006, 10:10 AM Re: Problem with postgre connections
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
You may well need to edit you pg_hba.conf file to allow connections.

Postgres comes boxed to run fine from the loacl computer, but once you start making web requests etc it is going to need some extra config.

FIND and edit pg_hba.conf

Find the part that starts with
# TYPE DATABASE USER CIDR-ADDRESS METHOD

and replace all under it with the following.

host all all 127.0.0.1 255.255.255.255 trust
# "local" is for Unix domain socket connections only
local all all ident sameuser

The local one is already present and allows connection from the box itself. host all ***** allows connections from the loopback (which facilitates web hits) (providing the web server is on this box).

To allow remote connections add an ip range (same format as the hosts file) then edit

FIND and edit postgresql.conf
uncommenct out the port line so you can accept foreign connections.

restart postgres
Try it out

psql -U <user> -h <host> -W <dbname>

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf

Last edited by ibbo; 07-03-2006 at 10:12 AM..
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Problem with postgre connections
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.12321 seconds with 12 queries