oci_close does not release the connection when you use DRCP

Hi all

We are currently testing the deployment of DRCP with 11g. I have the setup of this (to my knowledge), but I am facing a problem. Oci_close call does not seem to release the connection to the pool, because I expect and that is why we see similar behavior as we receive without using the DRCP.

Our facility is using two instances of CCR 11.1.0.6.0 running, I use PHP 5.1.6 with installed from PECL oci8 1.3.4. DRCP pool is configured and launched, each with 100 servers max.

When the Web server is idle, well, it looks like slow motion.

SQL > SELECT INST_ID select, NUM_BUSY_SERVERS OF SGS$ CPOOL_STATS;

INST_ID SELECT NUM_BUSY_SERVERS
---------- ----------------
1 0
2 0


The script is as simple as that:

<? PHP
$c is oci_pconnect ('scott', 'tiger', 'IWPPOOLED');.
$s = oci_parse ($c, ' select * from emp');
$r = oci_execute ($s, OCI_DEFAULT);
oci_close ($c);
Sleep (30);
? >

What I expected, it's that the script would be to connect to the pool, doing work for a little while and then release the connection for use by other scripts.

But after I point the browser to the script, I get a 30 seconds time of loading (as expected) but the server is busy all the time, like this:

SQL > SELECT INST_ID select, NUM_BUSY_SERVERS OF SGS$ CPOOL_STATS;

INST_ID SELECT NUM_BUSY_SERVERS
---------- ----------------
1 0
2 1

After 30 seconds of sleep, he is released and busy servers are at 0.

If I load the server with ab using 256 connections:

AB - n 1000000 - c 256 k - http://mywebserver/ocitest.php

the pool is at the maximum and links are at a standstill:

SQL > SELECT INST_ID select, NUM_BUSY_SERVERS OF SGS$ CPOOL_STATS;

INST_ID SELECT NUM_BUSY_SERVERS
---------- ----------------
1 95
2 95


My config this service network is the following:
IWPPOOLED =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = tcp) (HOST = 10.1.16.33)(PORT = 1521))
(ADDRESS = (PROTOCOL = tcp) (HOST = 10.1.16.34)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = IWP)
(SERVER = POOLED)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 5)
(TIME = 3)
)
)
)

The phpinfo() function will look like this:
Active oci8 support
Version 1.3.4
Revision $Revision: $1.269.2.16.2.38.2.20
Active persistent connections 1
Active connections 1
Oracle Instant Client Version 11.1
Active temporary Lob support
Support for collections enabled

Directive value local value Master
OCI8.connection_class IWPAPP IWPAPP
OCI8.default_prefetch 100 100
OCI8. Events on the
OCI8.max_persistent - 1-1
Off oci8.old_oci_close_semantics
OCI8.persistent_timeout - 1-1
OCI8.ping_interval - 1-1
Off oci8.privileged_connect
20 20 oci8.statement_cache_size


I use the instant client for 11g

Any ideas?

Thank you!
Michal

Don't forget to use oci_free_statement ($s); See "Closing Oracle Connections" in the Underground PHP and Oracle manual. (I was just simplify this example today for the next version of the manual).

You can also see the "dedicated optimization", where a server pooled in a non-maxed-out pool is retained (except if needed by another process PHP) assuming that the initial process of PHP can become active again. See http://www.oracle.com/technology/tech/php/pdf/php-scalability-ha-twp.pdf

Feel free to email me (see my profile) offline if questions/data that you don't want to display.

CJ

Published by: cj2 on October 16, 2008 08:12

Tags: Database

Similar Questions

  • Mac Illustrator CC 2015 bug: option-a path to reproduce moving often does not release the path when the mouse button is released

    Mac Illustrator CC 2015 bug: option-a path to reproduce moving often does not release the path when the mouse button is released

    Delete my preferences file and restart the machine seem to have solved that problem.

  • Can't view photos on Facebook with Firefox 9.01. Do not have the problem when you use IE

    If you use Firefox (ver 9.01) on Facebook I can't see the photos/videos that are published by a friend. Only a setting with nothing iside the frame is shown other images as logos etc. are visible. Operating system is Windows 7. When you use Internet Explorer, though I can view the pictures.

    You can use the following steps to check if the images are blocked:

    • Click on the "More information" button to open the "Page Info" with the Security tab selected (also accessible via "tools > Page Info").
    • Go to the Media of the window tab "tools > Page Info.
    • Select the first link of the image and scroll down through the list with the arrow down.
    • If an image in the list is grayed out and there is a check mark in the box "block Images of..." and remove this mark to unlock the images from this area.

    See also:

  • Time Machine does not recognize the backups when you configure the external drive as a network drive

    I have a MyBook 5 to disk with a 1 TB partition that I used as a destination for Time Machine > 1 year now. I recently gathered the energy to connect the my book on my Airport Extreme Base Station (model 2014? the second model) to implement wireless backups. I plugged the MyBook on the base station, set up file sharing in AirPort Utility and created an account with access to the partition of TM on the MyBook under the section 'Sharing secured disk' utility.

    Now, when I open the time Machine, I choose this partition, but it does not seem to recognize that I have a string of backups already there. Then he tries to start a new backup. So a few questions.

    1. Should I abandon my old backups and start over? I don't think that I did nothing to my system in these last days that I would need to be careful, if I couldn't rely on a TM backup from that moment.
    2. Is there a way to get TM to recognize my old backups and start from there? I do not look down the barrel of a backup of time + 13.

    If 1, should I reformat the partition TM in order to start over? I don't see the older backups on disk when I look in the Finder, but I know that they are there and they are too much space. Help/suggestions appreciated!

    Inherit from a backup

    Inherit from a backup (2)

  • Why the firefox profile is messed up and does not restore the tabs when you replace the Windows shell with something like bbLean

    I use Windows 8.1 x 64 but I can replace the Explorer bblean shell and when I do that firefox has issues with the profile such that cancel last closed tab or not to restore the tabs at startup.
    I was able to use the replacement of shell of bblean for years in previous versions of Windows, but he always had a weird behavior with firefox. Of course, I am currently in contact with bbLean developers working on the problem, but I would also like to hear what may be the cause of this.
    Thank you in advance.

    @guigs2
    Thanks for responding but I solved it somehow.
    'Replace the shell' means that I have deliberately change value in HKCU NT\CurrentVersion\Winlogon\Shell so it does not point explorer.exe but blackbox.exe.
    After the reset of my installation of windows and get rid of all programs, including firefox now I use firefox portable (not installation of vanilla from the original site) and found, I have no problem with profiles so far.

  • ColdFusion Launcher does not accept the password when you try to change the web server

    I know this will sound stupid as wrong password is a password wrong, right? Well I swear I know my passwords and it's not having it.

    I am running coldfusion 9 and I want to change the default internal server that I put it to the top with the installation on apache server that ships with mac OS x. So I started the coldfusion launcher and clicked the button Web server connection utility to set up, he asks a password to continue, but usually accept it... I tried both of the passwords that I use for stuff course where I was confused which it requested one, but is not having either.

    I tried to change the password for the coldfusion administrator and still no joy. I know that sounds stupid, but I do not understand... How can I get if she does not accept my admin password... I have tried uninstall and try again once like stuff as it is a nightmare to get rid of my experience... always leaves a file somewhere that you can never seem to isolate who mucks upward following installation so I left it for the moment. Anyone got any ideas?

    OK, you cannot double-click the wsconfig file, cause, then you are not running it as sudo, so you will not be allowed.  'sudo' is 'Super user' and allows you to run a program, temporarily, as a super user.  If you do that you won't have permission to edit the httpd config file.

    Try the following.

    Launch the Terminal

    type: cd/Applications/ColdFusion9/runtime/lib (change the correct path if it is not the path to your ColdFusion)

    Press enter

    type: sudo java-jar wsconfig.jar

    Press enter

    It should ask you for your password. Enter it and press ENTER again.

    It should launch the configuration tool, this time with the appropriate permissions to modify the file httd.conf.

    Good luck

  • Firefox loads, icon on the bar of tasks but when you click the slide of graphics off to the right, but does not fill the screen &amp; when you right-click again, falls back into the icon

    Firefox, Thunderbird and Quicken were active when I loadad & ran a slot machine game. When I left the game & click on icon to return to Firefox full screen, I could see the flash of the image to the right of my screen and disappear. When I clicked on the icon in the taskbar, the reverse happened - the image flashed from the right down to the icon. When I hover the mouse over the icon, the open screens appear with the red X to close, but the same thing happens when I click on this box. Two other programs that have been opened, while the game was active work correctly, only Firefox has been affected. I can't open the program to access one of the menu items that I can't get the image of the screen on the monitor. I did uninstall and reinstall a freshly downloaded copy, I had to use IE, as I am now) but with the same results when I run. I did chose to save my settings, so if something has changed here so maybe that's the problem.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Applications using cmd + tab switching does not work (reverse return) when you use several spaces in the Sierra

    I usually have a lot of apps open it in full screen across a number of different areas.  In El Capitan, when I used cmd + tab to switch apps, it would just go directly to the application in the entire app was opened in.  Now, he tries to switch to the app, but then IMMEDIATELY switches to the space, in that I was already.  It's like if someone is sitting there playing this cruel on me joke where whenever I try to go to the app, it shows to me and then immediately sent me immediately.  Everyone knows something similar to this?

    To re-create the problem, have a few apps open it in full screen in different spaces, then try to switch to another application in another space using cmd + tab or try to switch to an application that is just open on the main office space.  It comes immediately rebascule on your original app!  I'm ready to tear my hair out!

    Feedback: Apple http://www.apple.com/feedback/

    With your same Apple ID, you can register for a free developer account and start a conversation with Apple engineers

    Bug Reporter https://bugreport.apple.com/

  • Why Lightroom will not save the file when you use the image Capture?

    When you work with video in Lightroom 5, whenever I press "Image Capture", I get an error message that says: "cannot save the file." I tried this on several video files, and I get the same message. Video files are. MOV files. I can't understand why this is happening!

    I had this same error message. I solved it when I moved the video file on the hard disk internal to the computer, and then it worked perfectly. He always gave the error message when I used an external video file from my hard drive. There for a long time until I tried this. No one answered this problem in forums that I could find.

    I hope this helps.

  • The mouse does not work in WinPE when you use vRealize Console Web Automation

    Hello

    The SOE development team have been invited to use the vRA for office development, but they complain that they cannot use the mouse in the PE environment.

    I found this KB KB VMware: mouse movement in VMware vRealize Automation and VMware vCloud Director did not follow in the console session... which States "it is a problem known to affect VMware vCloud Director and VMware vRealize Automation. . Currently, there is no resolution for this. »


    I wonder if anyone has found a solution to this? and if they could point me in the right direction.


    It is not a problem with the help of the vCenter Web Client (which they have not the permissions to use anyway), and once VMtools is installed on a machine deployed the mouse works.


    We use vRealise 6.2.1


    Thank you

    So, we managed to work around a work for this. The SOE team had to get the VMtools package and extract the drivers concerned and inject it into a custom WinPE ISO. I don't know how they did this.

    Frankly, they complain loudly because it is just another thing that they should maintain now, especially since this isn't a problem by using the web console to vCenter WebClient.

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

  • PCMCIA card does not recognize the connection to the local network on Satellite Pro 4340

    Hello world

    I have 2 Satellite Pro 4340, running Win2K, SP4. I bought a card PCMCIA 10 / 100MB of Ultron (more or less no name :-))

    When you insert the card, Win2k recognizes the card, but when the I plug the network cable, it does not recognize the connection. Cable is fine. It seems there is no power on the PCMCIA card. I read on some forums that there is a problem with the Topic100 Card Bus driver and voltage. I see that many people have the problem but not where to find the driver for the problem :-/ I couldn't find a driver on toshiba support site. A

    ll have an idea, or better a link where I can download this driver? Any help is appreciated and thanks in advance for your help, support and answers.
    Corey

    If this card needs a driver you will not find it on the download page of manufacturer of portable. You must check the card producer site.

    As you know in the world of computers, it has set different standards. Produced very often cheap are not designed for these standards, and you can have different problems. I recommend you to use high quality products.

  • Connection problem diagnosis - "the remote device or resource does not accept the connection detected.

    My computer is a Windows Vista Home Premium 32-bit. The problem occurred about 2 months ago, while he was still in Vista, but please note that I've upgraded to Windows 7 last night and the problem is always the same.

    My Internet Explorer, updates to the computer, iTunes and everything, EXCEPT my AOL, does not work. My connection says 'excellent '. (Hang everything on my laptop to my wireless are works fine, that my office is having this problem)
    When I click on Internet Explorer, it says "Internet Explorer cannot display the webpage", and when I click on "analyze the connection problem" said "problems discovered - the remote device or resource does not accept the connection detected.
    I talked to my internet provider Comcast all morning this problem: she said that his side internet connections work properly. She walked through me steps including reconnected the router cords, control the way in which the Internet is put in place and other things, but everything was how it was supposed to be. She suggested that maybe AOL could be the problem and to remove it because I used it, so I did, but nothing has changed. So then she told me to contact Windows... (not sure how to call technical Windows supports without having to pay $59?, but found this forum)
    Is anyone familiar with this problem and could you please help or at least point me in the right direction?
    In addition, please let me know if you need any other information on the problem.
    Thank you
    Lily

    Hello

    Try the steps from the following link

    http://support.Microsoft.com/default.aspx/KB/956196

  • The remote device or resource does not accept the connection

    I have a desktop computer Windows 7 connected to my router via an ethernet cable, but when I try to go to a website on Google Chrome as Google.ca, loading the page forever without even showing the page. Finally after a long wait, it finally says that the Web page is not available. I tried to go to the Web sites by using Internet Explorer, but occurs the same result. I tried to troubleshoot the problem and it "the remote device or resource does not accept the connection" is detected, but does not set automatically. I have a wireless printer connected to my router which is online and works very well. I can even connect to my router page. But still no access to Web pages don't like my outlook.com and etc. Sometimes a go open the network and sharing Center to change the settings of the card and disable the wired ethernet only to activate it again. It works only a few times, and it's really frustrating, because it is the only computer that does not connect to the internet, even with a ethernet cable. Please find a solution as soon as possible. Thank you.

    Hello Kyle,.

    Your computer is connected to a domain network?

    If your computer is connected to a domain network, then, I suggest you follow the link below to post your query in the TechNet forums, because they have more expertise on this issue.

    Forums TechNet for Windows 7
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking

    Otherwise, try to follow the following suggestions to solve the problem.

    "Internet Explorer cannot display the webpage" error

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings. Reset Internet Explorer is not reversible, and all the previous settings are lost after reset.

    Also refer to:

    The remote device or resource does not accept the connection

    I hope this helps. Otherwise, feel free to write us again and we will be happy to help you.

    Thank you

  • Remote device does not accept the connection since W7 re - install.

    Since then reinstall it W7 Pro, I'm now no longer able to map a network drive on a NAS on the network. The NAS device is visible to all other domestic uses (Sonos, Internet TV, etc) and can be accessed via the front view in a web browser without any problem. I can PING the device and don't get a response, so no problems with the device itself (which was untouched before, during or after re-setup of W7).

    Just cannot map a network drive!

    Tried to disable the firewall etc, but still no luck. Also checked that all relevant services are running.

    Someone has ideas that more I can do to get my laptop to talk to it as a network drive?

    When I enter the ip address of the NAS and click 'Finish' to the card, I get the following dialogue:

    The remote device or resource does not accept the connection
    The device or resource to 192.168.x.xxx is not configured to accept connections on port 'file sharing and printers (SMB).

    any help would be greatly appreciated.
    Thanks in advance.

    Hi Stuart,

    The question you posted would be better suited to the TechNet community. See the link.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    Hope this information helps.

Maybe you are looking for

  • No sound in windows xp...

    I got just my pc from vista to xp sp3... I have installed the audio driver realtek hd HD but no sound is coming... niether the audio icon in the bar spots... in the properties of the audio device (in the volume tab) is to show that no audio device...

  • Acer one aspire D250 XP install

    I am trying to install windows xp on my new Netbook Acer via the external DVD writer. It will load all the drivers, but when it gets to the Windows installation I get a message saying that the hard drive could be corrupted. Can anyone help please? To

  • Live Album Viewer window has stopped working

    Error message comes on the screen 'Live Album Viewer window has stopped working"

  • Error 0 x 80070035 "[name of the PC] is not configured to establish a connection on Port"File and Printer sharing (SMB)"on this computer".

    Original title: "home network". 0 x 80070035 "[name of the PC] is not configured to establish a connection on Port"File and Printer sharing (SMB)"on this computer". That's what I get on my ThinkPad when I try to do the networking. I placed all the pa

  • Photosmart c4580 print problem

    Hello, I have a photosmart c4580 running on wifi... I have two mac osx on 10.7.4 but when I print, it says 'printing 100% ' then I get a messase saying 'this printer is not responding' IV ' e removed the software from the computer off and removed the