Excessive no. of ports remaining open with HttpUrlConnection

Hi,
I am facing problem where excess no. of TCP ports getting opened or remaining open on client of my application (from where I send XML requests to application).
The scenario happens when I simulate a load of 100 concurrent requests through JMeter (SOAP/XML-RPC requests)
Client app is deployed on Tomcat 5.5 on a Linux box.
My code looks like follow:
try {
URL url = new URL(<url string>);
HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setDoOutput(true);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpURLConnection.getOutputStream());
outputStreamWriter.write(<write something>);
outputStreamWriter.close();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
<read buffered reader here>
bufferedReader.close();
} catch {}
finally {
httpURLConnection.disconnect();
}What's wrong here that is causing excessive TCP IP ports to remain open?
Also, I want to restrict the no. of Http connections that I can make from client to server. Is this possible?
I searched about <Connector acceptCount=<> .... > in server.xml on Tomcat. But it is about incoming connections on Tomcat port and not the outgoing connections. I also explored -Dhttp.maxconnections but it doesn't serve my purpose. Only option I can think about is creating a custom object pool for HttpConnectionUrl (which I would like to avoid due to some reasons)
Is there any built-in support/ready API/tool to restrict no .of connections while sending Http requests?
regards,
suraj

I am facing problem where excess no. of TCP ports getting opened or remaining open on clientCompared to what?
The scenario happens when I simulate a load of 100 concurrent requests through JMeter (SOAP/XML-RPC requests)Aha.
What's wrong here that is causing excessive TCP IP ports to remain open? Nothing except your definition of 'excessive'. You are simulating hundreds of clients on one client host so you will get all the bahaviour of those client hosts in your single client host. The problem is in the simulation, not the TCP ports.
Also, I want to restrict the no. of Http connections that I can make from client to server. Is this possible? Why?

Similar Messages

  • Why do ports remain open after closing Firefox?

    I have noticed recently that several ports associated with Firefox remain open when the Firefox browser is closed. The number of open ports increases each time Firefox is opened and I have seen that the number of open ports has reached to more than 1,000 open ports at a time. The majority of the open ports are outbound TCP using port 443 and I also note a sustained increase in the network traffic after Firefox is closed.
    I have observed ports opened by the Explorer browser and noted that all of the ports opened with Explorer close when the Explorer browser is closed. The Firefox ports remain open when the browser is closed.
    Questions:
    - Should all open ports associated with an open Firefox browser close when the Firefox browser is closed?
    - Does Firefox have a setting that closes all open ports when the Firefox browser is closed?
    - Does XP have a setting that will close all open ports associated with Firefox when Firefox is closed?
    - Should I have security concerns about the accumulating open ports and increased network activity when using Firefox?
    Thanks.

    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.
    See http://kb.mozillazine.org/browser.download.manager.quitBehavior
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • What is the weblogic process or file opened with udp port?

    I'm running weblogic 8.1 on linux AS 3.0, whenever I bring it up, there is a process that listens on udp, although my weblogic runs on default tcp port 7001. What file or process opened with up port (32770)? I'm curious to know whats running with udp..
    Thanks

    Does anyone know why weblogic opens udp port/ which process maps to the port?
    Thanks

  • Hi I am trying to downkoad based on the free trial. I hane Internet explorer and when I click run a sibdow will open with the sign of sownloading but it remains always to 0%

    Hi I am trying to download based on the free trial. I hane Internet explorer and when I click run a window  will open with the sign of downloading but it remains always to 0% and no download is executed. Can someone help?

    Use another browser.
    Mylenium

  • Firefox 5 apparrently changed a Windows setting, now I have artifacts remaining on top of my desktop when doing things like selecting a file and doing an open with selection.

    Ever since I my system updated to Firefox 5 I now have issues such as:
    Want to open a file such as a doc in Wordpad instead of Word (for speed and simplicity), I right click on the file and select open with Wordpad...the Wordpad and it's icon now stay on the desktop, on top of anything else. This happens when doing any open as selections. This did not happen before Firefox 5......there must be an overriding code confliction. Am using XP Home Premium.

    Hi Steve1904,
    So you have use the backup and Restore to restore your files from Windows XP to Windows 7 directly?
    This should be considered not work.
    If you would like to transfer files between Windows XP and Windows 7, you need another tool called Windows Easy Transfer.
    See the article below if you would like to upgrade from Windows XP to Windows 7:
    Upgrading from Windows XP to Windows 7
    If possible, follow the steps there, then things should be OK.
    Best regards
    Michael Shao
    TechNet Community Support

  • Fc Port Remains In "Initializing" State

    First of all, thank you for taking the time to read this.....
    We are trying to add an IBM P770 to our Cisco MDS 9000 Fabric Switch.  We've set the port to Fx mode, trunking off, rate-mode is shared.  For some reason the port remains in the "initializing" state.  The only way that we could get it to come up, is by putting the port into ST state.  Even when the port does come up, in ST mode, when you look at the Flogi database, the port doesn't appear.  Unfortunately, our support isn't through SmartNet, so we have to open support with another vendor.  Unfortunately, they are as stumped as we are.  We have read many online blogs, but nothing seems to help us.  None of us are Storage Network experts, so hopefully someone can help.  Again, thanks for taking the time to read this!            

    OK try this.
    Set the switch port type to auto and then get your unix admin to rmdev the hba (without the -d will be fine), then do a cfgmgr.
    Steven

  • Closed port for torrent with no iptables.rules

    I have a home system with internet connection over a router. Firewall in the router seems to be disabled. I had installed guarddog and selected all the protocols that I need. There is no iptables in deamons line of rc.conf nor there is any iptables.rules files. There are 2 files in /etc/iptables, empty.rules and simple_firewall.rules. So, I wonder if any firewall is working at all in my system since guarddog is a frontend to iptables (i guess) and also is there any need for firewall since almost all the ports are closed.
    Secondly, the main issue. I was using ktorrent and it was working fine until a few days ago. Now, bittorrent is not working. its not connecting at all. I tried deluge from community repo and tested the ports with http://www.deluge-torrent.org/test-port.php?port=6881 and it gave me this result:
    TCP port 6881 closed on 121.247.200.189
    UDP port 6881 open on 121.247.200.189
    121.247.200.189 seems to be the ip of my isp as I got a dynamic one.
    I am able to reach surf net but not able to download using bitorrent, however, both is possible in windows.
    Taking clue from forum, i did nmap.
    nmap on my router
    [shantanu@bluehead ~]$ nmap 192.168.1.1
    Starting Nmap 4.20 ( http://insecure.org ) at 2007-06-25 20:49 IST
    Interesting ports on 192.168.1.1:
    Not shown: 1679 filtered ports
    PORT STATE SERVICE
    21/tcp open ftp
    23/tcp open telnet
    53/tcp closed domain
    80/tcp open http
    443/tcp closed https
    554/tcp closed rtsp
    1755/tcp closed wms
    2401/tcp closed cvspserver
    5000/tcp closed UPnP
    5001/tcp closed commplex-link
    5050/tcp closed mmcc
    6881/tcp closed bittorent-tracker
    6969/tcp closed acmsoda
    7070/tcp closed realserver
    8000/tcp closed http-alt
    8080/tcp closed http-proxy
    8888/tcp closed sun-answerbook
    11371/tcp closed pksd
    Nmap finished: 1 IP address (1 host up) scanned in 27.653 seconds
    nmap on my ip
    [shantanu@bluehead ~]$ nmap 192.168.1.5
    Starting Nmap 4.20 ( http://insecure.org ) at 2007-06-25 20:48 IST
    Interesting ports on 192.168.1.5:
    Not shown: 1696 closed ports
    PORT STATE SERVICE
    6000/tcp open X11
    Nmap finished: 1 IP address (1 host up) scanned in 0.519 seconds
    nmap on isp's ip displayed above.
    [shantanu@bluehead ~]$ nmap 121.247.200.189
    Starting Nmap 4.20 ( http://insecure.org ) at 2007-06-25 20:50 IST
    Interesting ports on 121.247.200.189.bang-dynamic-bb.vsnl.net.in (121.247.200.189):
    Not shown: 1679 filtered ports
    PORT STATE SERVICE
    21/tcp open ftp
    23/tcp open telnet
    53/tcp closed domain
    80/tcp open http
    443/tcp closed https
    554/tcp closed rtsp
    1755/tcp closed wms
    2401/tcp closed cvspserver
    5000/tcp closed UPnP
    5001/tcp closed commplex-link
    5050/tcp closed mmcc
    6881/tcp closed bittorent-tracker
    6969/tcp closed acmsoda
    7070/tcp closed realserver
    8000/tcp closed http-alt
    8080/tcp closed http-proxy
    8888/tcp closed sun-answerbook
    11371/tcp closed pksd
    Nmap finished: 1 IP address (1 host up) scanned in 30.573 seconds
    Everywhere the bittorrent port seems to be closed. [b]How do I open this port?.[b/]
    Last edited by ravisghosh (2007-06-25 21:09:55)

    @madeye, first of all thanks a lot for such elaborate help.
    I used utorrent in windows and u r very much right that it uses UPnP. In deluge (bt client on arch), UPnP was there but disabled (shaded). Hence, I tried running utorrent using wine and it gave a error message "Unable to map UPnP port' and is not able to connect. So, UPnP is not working in my box.
    Then I tried as you suggested "iptables -L" and it gave me the following results.
    [shantanu@bluehead ~]$ sudo iptables -L
    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT 0 -- anywhere anywhere
    ACCEPT udp -- anywhere anywhere udp spt:bootps dpt:bootpc
    ACCEPT 0 -- 192.168.1.5 192.168.1.255
    logaborted tcp -- anywhere anywhere state RELATED,ESTABLISHED tcp flags:RST/RST
    ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
    ACCEPT icmp -- anywhere anywhere icmp time-exceeded
    ACCEPT icmp -- anywhere anywhere icmp parameter-problem
    nicfilt 0 -- anywhere anywhere
    srcfilt 0 -- anywhere anywhere
    Chain FORWARD (policy DROP)
    target prot opt source destination
    ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
    ACCEPT icmp -- anywhere anywhere icmp time-exceeded
    ACCEPT icmp -- anywhere anywhere icmp parameter-problem
    srcfilt 0 -- anywhere anywhere
    Chain OUTPUT (policy DROP)
    target prot opt source destination
    ACCEPT 0 -- anywhere anywhere
    ACCEPT udp -- anywhere anywhere udp spt:bootpc dpt:bootps
    ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
    ACCEPT icmp -- anywhere anywhere icmp time-exceeded
    ACCEPT icmp -- anywhere anywhere icmp parameter-problem
    s1 0 -- anywhere anywhere
    Chain f0to1 (3 references)
    target prot opt source destination
    ACCEPT udp -- anywhere anywhere udp dpts:6970:7170
    ACCEPT icmp -- anywhere anywhere icmp echo-reply
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:65535 dpts:6881:6889 state NEW
    logdrop 0 -- anywhere anywhere
    Chain f1to0 (1 references)
    target prot opt source destination
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:6969 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:http state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:http-alt state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:8008 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:8000 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:8888 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:ftp state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:https state NEW
    ACCEPT tcp -- anywhere anywhere tcp dpt:rtsp state NEW
    ACCEPT tcp -- anywhere anywhere tcp dpt:7070 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:cvspserver state NEW
    ACCEPT tcp -- anywhere anywhere tcp dpt:1755 state NEW
    ACCEPT udp -- anywhere anywhere udp dpt:1755
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:11371 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:5050 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:telnet state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpts:5000:5001 state NEW
    ACCEPT udp -- anywhere anywhere udp spts:1024:5999 dpt:5000
    ACCEPT tcp -- anywhere anywhere tcp dpt:domain state NEW
    ACCEPT udp -- anywhere anywhere udp dpt:domain
    ACCEPT icmp -- anywhere anywhere icmp echo-request
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:5222 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpt:5223 state NEW
    ACCEPT tcp -- anywhere anywhere tcp spts:1024:5999 dpts:6881:6889 state NEW
    logdrop 0 -- anywhere anywhere
    Chain logaborted (1 references)
    target prot opt source destination
    logaborted2 0 -- anywhere anywhere limit: avg 1/sec burst 10
    LOG 0 -- anywhere anywhere limit: avg 2/min burst 1 LOG level warning prefix `LIMITED '
    Chain logaborted2 (1 references)
    target prot opt source destination
    LOG 0 -- anywhere anywhere LOG level warning tcp-sequence tcp-options ip-options prefix `ABORTED '
    ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
    Chain logdrop (4 references)
    target prot opt source destination
    logdrop2 0 -- anywhere anywhere limit: avg 1/sec burst 10
    LOG 0 -- anywhere anywhere limit: avg 2/min burst 1 LOG level warning prefix `LIMITED '
    DROP 0 -- anywhere anywhere
    Chain logdrop2 (1 references)
    target prot opt source destination
    LOG 0 -- anywhere anywhere LOG level warning tcp-sequence tcp-options ip-options prefix `DROPPED '
    DROP 0 -- anywhere anywhere
    Chain logreject (0 references)
    target prot opt source destination
    logreject2 0 -- anywhere anywhere limit: avg 1/sec burst 10
    LOG 0 -- anywhere anywhere limit: avg 2/min burst 1 LOG level warning prefix `LIMITED '
    REJECT tcp -- anywhere anywhere reject-with tcp-reset
    REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
    DROP 0 -- anywhere anywhere
    Chain logreject2 (1 references)
    target prot opt source destination
    LOG 0 -- anywhere anywhere LOG level warning tcp-sequence tcp-options ip-options prefix `REJECTED '
    REJECT tcp -- anywhere anywhere reject-with tcp-reset
    REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
    DROP 0 -- anywhere anywhere
    Chain nicfilt (1 references)
    target prot opt source destination
    RETURN 0 -- anywhere anywhere
    RETURN 0 -- anywhere anywhere
    RETURN 0 -- anywhere anywhere
    logdrop 0 -- anywhere anywhere
    Chain s0 (1 references)
    target prot opt source destination
    f0to1 0 -- anywhere 192.168.1.5
    f0to1 0 -- anywhere 192.168.1.255
    f0to1 0 -- anywhere bluehead.localdomain
    logdrop 0 -- anywhere anywhere
    Chain s1 (1 references)
    target prot opt source destination
    f1to0 0 -- anywhere anywhere
    Chain srcfilt (2 references)
    target prot opt source destination
    s0 0 -- anywhere anywhere
    That means iptables is not disabled and that firewall rules are setup by guarddog.
    I removed guarding using "pacman -Rns guarddog" and rebooted. Still get the same results with utorrent and "iptables -L" and also the port test shows tcp 6881 is still closed.
    Removed iptables and now bt clients seems to be able to connect and it works; however, port test still shows tcp 6881 closed.
    Last edited by ravisghosh (2007-06-27 16:51:12)

  • Implicit PL/SQL cursors remain open, causing ORA-01000 (Client 9.2.0.1)

    Hello,
    since migrating our system from Oracle Client 9.0.X to 9.2.0.1 (Windows XP), i am encountering troubles when calling a stored procedure from a Cobol-Program:
    after a while i run into a 'Maximum open cursors exceeded'-message (ORA-01000)
    The stored procedure returns a cursor (ref_cursor)
    When Executing the stored procedure, there are actually 2 cursors involved, in fact the stored PL/SQL procedure implicitely opens a child-cursor when doing a select within the PL/SQL.
    After fetching the result and closing the cursor in my cobol-program, it correctly closes the cursor associated with the stored-procedure, but it does not close the cursor that was implicitely opened by oracle.
    After a while i am running into a Maximum open cursors message, because those cursors have not properly been closed.
    Here's a simple PL/SQL package that illustrates the problem:
    create or replace package scott.SCOTTS_PACKAGE is
    type ref_cursor IS REF CURSOR;
    function GET_EMP(EMP_IN CHAR) return ref_cursor;
    end SCOTTS_PACKAGE;
    create or replace package body scott.SCOTTS_PACKAGE is
    -- Function and procedure implementations
    function GET_EMP(EMP_IN CHAR) return ref_cursor is
    MyCurs ref_cursor;
    begin
    OPEN MyCurs FOR
    SELECT EMPNO ,
    ENAME ,
    JOB
    FROM SCOTT.EMP
    WHERE ENAME = EMP_IN;
    return(MyCurs);
    end;
    end SCOTTS_PACKAGE;
    Here are some exerpts from my cobol program:
    (The program iterates 100x through the section that executes the PL/SQL. After each iteration an additional open cursor remains in the database)
    003800 EXEC SQL BEGIN DECLARE SECTION END-EXEC.
    003900*
    004000 01 SQL-USERNAME PIC X(16) VARYING.
    004100 01 SQL-PASSWD PIC X(16) VARYING.
    004200 01 SQL-DBNAME PIC X(64) VARYING.
    004300 01 ORACLE.
    004700 02 ORA-CUR-EMP SQL-CURSOR.
    01 EMPREC.
    02 EMPREC-EMPNO PIC X(4).
    02 EMPREC-ENAME PIC X(10).
    02 EMPREC-JOB PIC X(9).
    005400 EXEC SQL END DECLARE SECTION END-EXEC.
    018400 PROCEDURE DIVISION.
    CONTINUE.
    018700 EXEC SQL
    018800 WHENEVER SQLERROR DO PERFORM SQL-ERROR
    018900 END-EXEC.
    019000*
    CONTINUE.
    019100 EXEC SQL
    019200 WHENEVER NOT FOUND DO PERFORM SQL-NOT-FOUND
    019300 END-EXEC.
    022400 EXEC SQL
    022500 ALLOCATE :ORA-CUR-EMP
    022600 END-EXEC
    PERFORM VARYING I FROM 1 BY 1 UNTIL I > 100
    ACCEPT DUMMY FROM TER
    IF DUMMY = "E"
    MOVE 100 TO I
    END-IF
    PERFORM GET-EMP
    ADD 1 TO I
    END-PERFORM
    119300 GET-EMP SECTION.
    119400************************
    119500 GAM0.
    MOVE SPACES TO EMPREC-EMPNO EMPREC-JOB
    MOVE "SMITH" TO EMPREC-ENAME
    120200 EXEC SQL AT SSSI EXECUTE
    120300 BEGIN
    120400 :ORA-CUR-EMP:=
    120500 SCOTT.SCOTTS_PACKAGE.GET_EMP(:EMPREC-ENAME );
    120900
    END;
    121000 END-EXEC
    121200 IF DB-ERR-CODE NOT = HIGH-VALUE
    121300 DISPLAY "CCSIFSO:GET-AUTRE-MATR:APPEL PERS... OK"
    121400 EXEC SQL
    121500 FETCH :ORA-CUR-EMP
    121600 INTO
    121700 :EMPREC-EMPNO,
    121800 :EMPREC-ENAME,
    121900 :EMPREC-JOB
    122400 END-EXEC
    122500 END-IF
    122600*
    122700 IF DB-ERR-CODE NOT = HIGH-VALUE
    122800 DISPLAY "CCSIFSO:GET-AUTRE-MATR:APPEL FETCH.. OK"
    123000 ELSE
    123100 MOVE LOW-VALUE TO DB-ERR-CODE
    123200 END-IF
    123300 EXEC SQL
    123400 CLOSE :ORA-CUR-EMP
    123500 END-EXEC
    123600 GA-EX.
    123700 EXIT.
    124000 SQL-NOT-FOUND SECTION.
    124100*----------------------
    124200 NF0.
    124300 DISPLAY "CCSIFSO:SQL-NOT-FOUND SECTION."
    124400 MOVE HIGH-VALUE TO DB-ERR-CODE.
    124500 NF-EX.
    124600 EXIT.
    124700*
    124800 SQL-ERROR SECTION.
    124900*-----------------
    125000 ER0.
    125200 EXEC SQL
    125300 WHENEVER SQLERROR CONTINUE
    125400 END-EXEC
    125700 MOVE HIGH-VALUE TO DB-ERR-CODE
    125800*
    126100 DISPLAY "ORACLE ERROR DETECTED: " SQLCODE UPON TER
    126200 DISPLAY SQLERRMC UPON TER
    126300*
    126400 EXEC SQL AT SSSI
    126500 ROLLBACK WORK
    126600 RELEASE
    126700 END-EXEC
    126800 DISPLAY "----------------------------" UPON TER
    126900 DISPLAY " ! ROLLBACK ET DISCONNECT ! " UPON TER
    127000 DISPLAY "----------------------------" UPON TER
    127200 CALL "PPTERMJ".
    127400 ER-EX.
    127500 EXIT.
    Finally here's an exerpt from V$OPEN_CURSOR, after a few iterations:
    1 begin :b1 := SCOTT . SCOTTS_PACKAGE . GET_EMP (:b2 ) ; END ;
    2 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    3 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    4 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    5 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    6 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    7 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    8 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    9 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    10 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    11 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    As you see, there is only 1 cursor starting with 'begin ... '
    but there are 10 implicit cursors 'SELECT EMPNO, ... ' that have not been properly closed, nor reused by ORACLE.
    In our old configuration (ORACLE CLient 9.0.X), you would only see:
    1 begin :b1 := SCOTT . SCOTTS_PACKAGE . GET_EMP (:b2 ) ; END ;
    2 SELECT EMPNO , ENAME , JOB FROM EMP WHERE ENAME = :B1
    meaning all the other cursors have properly been closed.
    As a conclusion: the program correctly closes the implicit cursors when using a 9.0 Client, wheras the implicit cursors remain open on Client 9.2.0.1 (Windows XP)
    The underlying database can be either 8.i or 9, the problem remains the same.
    Finally here's a small Delphi code, using ODAC-components, that somewhat illustrates the same problem:
    procedure TForm1.ExecProcClick(Sender: TObject);
    var I: INTEGER ;
    begin
    FOR I := 1 TO 5 DO
    BEGIN
    SP1.StoredProcName:='SCOTT.SCOTTS_PACKAGE.GET_EMP';
    SP1.Prepare;
    SP1.ParamByName('EMP_IN').AsString := 'SMITH';
    SP1.ExecProc;
    SP1.Next;
    SP1.Close;
    SP1.UnPrepare;
    END;
    end;
    After each call to 'PREPARE', an additional implicit cursor remains open on the database. (using Oracle Client 9.2.0.1)
    On our old system (Oracle Client 9.0 or 8.X), the same program would not generate accumulating open cursors on the database
    Any suggestions would be welcome,
    Claude

    Cobol.. been many years since I last even saw some Cobol source code. Invokes all kinds of memories. :-)
    Since you found the patch, the advice is superfluous, but works. Close the cursor at the PL/SQL side, e.g.
    create or replace procedure CloseRefCursor( cRefCursor TYPELIB.TRefCursor ) is
    begin
      close cRefCursor;
    exception when OTHERS then
      -- if the cursor is already gone, not a problem
      NULL;
    end;In Delphi for example, one can subclass the class used for ref cursor calls and add a call to the above PL/SQL proc in the destructor. Or add create a standard Cobol close ref cursor section that does similar.

  • Delete Remain Open Quantity in PO Item

    Hi SAP community,
    My Order quantity in PO item is 100, and User have GR 90. Left with 10 units to be good receipt.
    Now user what to cancel the 10 unit, so that they can close this PO
    how can the user cancel the 10 unit remain open in po ?

    Hi,
    You have 2 options -
    1) If you want that this PO should not be considered for MRP run, then marks the Delivery complete indicator in item details level & save. In this case though the PO will not be considered for MRP, you will be able to post GRN.
    2) If you do not want to post any GRN for this PO, then change the PO quantity to the quantity of actual GRN made. In this case the PO will not be considered for MRP as well as you will not be able to post GRN.
    Regards,
    Prashant

  • Ipod touch 5th gen won't connect/open with itunes

    I just got my ipod touch less than a month ago and it was charging perfectly well until today. At first it didn't want to charge, but I went to device manager and updated the usb cable for the ipod (it says Apple ipod). Now the ipod charges but it doesn't open with itunes instead it opens to a totally different file on my computer. When I go to itunes, I get no response from it.

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • Open with [Pages4.3] for ALL Pages docs not working

    Hi there,
    I am unable to set the default application for all PAGES document to open in a lesser version (Pages version 4.3) to that of Pages version 5.1 which came pre-installed on my machine.
    The reason why I want Pages 4.3 opening on default instead of Pages 5 is because Pages 4.3 contains the features version 5 no longer has. I also wish to retain Pages 5 to open historical documents.
    I am running OS10.9.5 with Pages version 5.1 (1769) as standard with the machine when I bought it. I copied to my machine the application Pages 4.3. It runs, I have no problem opening both copies of Pages.
    I now want all my Pages documents to open in v4.3 as default (not v5). This is where I fall over.
    1. I "Get info" on a Pages document,
    2. In the "Open with" panel I select Pages 4.3 from the dropdown menu. Upon changing the application the "Change All" button is becomes active.
    3. I click on "Change All" button and confirmation message appears (see image). I click "Continue" and the confirmation message disappears.
    4. ISSUE - The default application reverts back to "Pages" (see image) which is the same selection as when I started (step 1)
    (Note: I also selected "Other" from the dropdown menu and selected Pages 4.3 from the applications folder through the dialogue window, but without joy)
    5. When I double-click the selected document (the document I selected in step 1) it opens in Pages 4.3. However, when I double-click any other Pages document it opens in Pages5, not Pages4.3.
    I might add, others in my office, with varying OS (10.10, and 10.7) and Pages 5.5.2 have not had the same issue as I have. They followed the same process as above and in Step4, their selection of Pages4.3 remained as the dropdown value, not "Pages".
    I would be grateful to hear from those who have had similar issue and overcome it. Many thanks

    Hi stutteringfish,
    was hoping for something more definitive... something more like what the feature "open with [for all]" is designed to do.
    I am afraid not. That setting does not stick with Pages 5 (or Numbers 3).
    My solution is to keep icons for the old and new versions on my Dock. Then I can launch whichever and Menu > File > Open (or Open Recent) from within the appropriate version..
    Wayne Contello has written a User Tip for working with the old and new versions of iWork.
    Need newer version of Numbers to open file
    Regards,
    Ian.

  • CS5 - Can't "Open With" Photoshop in Bridge?

    I have CS5 installed and I am my defaults for Opening is Elements 8 on my
    Vista machine and "nothing" on my XP laptop.
    When on either machine and I right click an image, Photoshop is NOT an option to Open With.
    If I go to preferences, I can manually set the default, but this is not an acceptable solution as I need my defaults to be something different.
    For example, I need the default for my Nikon RAW files to remain Nikon Capture NX2, but I want the ability to right click and select the application I want to use.
    How to I add Photoshop (or any other application) to the "Open With" List?

    What you see on other programs in the list (aside the default, which is defined for Bridge only) of programs which a certain filetype were openend in the OS once.
    For example (close Bridge / CS) and choose Quicktime as the default program for opening TIF in XP and you will have it in the list after Bridge was started again.
    I'm afraid you need to do that for every application (close Bridge, choose a different default app for opening TIF in the OS, open Bridge again, and so on) you want to have in the list for a certain filetype.
    When done don't forget to change it back to the default program you want to have it opened in the OS, f.e. CS5.
    No need to make an application the default program (uncheck "always use the selected program to open this kind of file") - just say once "open with" and you will find it in Bridges "open with" list

  • Wireless-N Gigabit Router ports wont open?? NEED HELP

    I upgraded my linksys WRT54GX to a linksys Wireless-N Gigabit Router with Storage Link and now when I open ports or specify my ip under a DMZ, my ports are still being blocked. Im trying to open a few ports for my applications but when i test them.. it fails, ive turned off my MCaffee firewall opened the ports and even put my static ip and enabled DMZ and it still shows my ports as not going through. I would appreciate any help.

    I have updated to the most recent firmware. I had a few technicians setting up a crestron Audiorequest server in my houes and for the equiptment to work properly they needed to open up about 5-6 ports. I could see they were having problems while forwarding the ports on the N router. They told me even though the ports were open, they were still being blocked by the routers firewall. I had to set up my old WRT54GX modem and now the ports are benig accepted. I now have a 250 dollar router sitting on my floor because it is not working properly. Any suggestions?

  • I am using a Canon 640 printer and my MPNavigator will not remain open.  It pops open then quickly closes.  I've used it for several years but it just started doing this.  What can I do to fix this problem?

    I am using a Canon 640 printer and my MPNavigator will not remain open.  It pops open then quickly closes.  I've used it for several years but it just started doing this.  What can I do to fix this problem?

    I had a similar problem with a Canon MP800R under Mac OS X 10.9.2 Mavericks.
    In my case, the MP Navigator app in the dock was linking to the wrong file.
    It linked to Applications > MP Navigator 2.1.app > Contents > Resources > MP Navigator.app, but it should link to the "main" app, probably under Applications > MP Navigator 2.1.app.
    After pulling the correct MP Navigator app file to the dock, I can start MP Navigator again by clicking on it in the dock. However, when clicking on it, a second MP Navigator icon will show up in the dock and stay there until the app is closed. By the way, the MP800R scanner also works (although officially not supported by Canon).

Maybe you are looking for

  • 10.4.6 and Photoshop CS2

    I have found that I am not alone in my finding that Photoshop CS2 crashes when saving files opened from remote volumes. A workaround has been to "downgrade" the appleshare client software to 10.4.5 .. I guess my question is, will apple be addressing

  • Problem with animated gif image getting displayed

    My problem is that my animated image does not get displayed properly. I am extending JButton and the button already contains a static image. I want to display the animated image over the static one for some reason. If I replace the animated image wit

  • Youtube doesn't work!!

    I've got a blackberry curve 8250 + youtube doesn't work on it at all. The video will load then the screen will just go black and nothing happens. I've tried the youtube app + the mobile youtube + the same thing happens. Help pleaseee!!!

  • Minimize window problems in photoshop cs5

    just installed master collection cs5 on my macbook pro - 17", 3.06GHz Core 2 Duo, 8Gb RAM, running Snow Leopard. couple of problems - i can't minimize photoshop windows by double clicking on the window title bar - i can in every other program includi

  • Is iTunes 11 compatible with Windows 10 Technical Preview?

    Hello. I just installed Windows 10 Technical Preview and iTunes 11 on my PB, but now iTunes does not start up. Can anybody explain me why? kind regards, jolimans