JMF Does not release the RTP ports

Hi,
I am working on a program that simply listens RTP messages from the network and play them on a PC. My datasource is created as follows:
String url2= "rtp://127.0.0.1:10000/audio/1";
medialocator=new MediaLocator(url2);
ds=Manager.createDataSource(medialocator);
This ds will later be given to a player for the local playback. It has a flow like this: DS->Processor->DS->Player.
Everything works fine for the first execution. The stream is played. However when I stop the player, processor and even the ds, JMF does not realease the RTP ports. I still can see them in the netstat output. Heres how I try to release the resources:
public void releaseResources(){
try{
if(player!=null){
player.stop();
player.deallocate();
player=null;
if(ds2!=null){
ds2.stop();
ds2.disconnect();
ds2=null;
if(processor!=null){
processor.stop();
processor.removeControllerListener(this);
processor.deallocate();
medialocator=null;
ds=null;
Because of this problem, when I try to do the same thing on the same url after sometime, it gives the error "Cannot create the RTP Session: Can't open local data port: 10000". The ports are released after I shutdown the JVM.
Does anyone have an idea on how to release this ports in the same JVM session?
Thanks a lot,
Murat

DataSource objects open a connection to their source, in your case, a connection to an RTP port. You need to call
ds.disconnect()
on both datasources, but SPECIFICLLY on ds (as opposed to ds2) if you want it to release the port.

Similar Messages

  • JInternalFrame is closed, but does not release the memory

    Hi,
    I have problem with using of JInternalFrame.
    I create a new internal frame, and close it."setClosed(true);dispose();"
    The frame does not release the memory (after gc the allocated memory is the same)
    Before close I removed all listeners, and closed all reference to other object. (I think so :-) )
    Do You have any idees?
    regards
    G�bor

    Hi,
    I think u will have to release all the associated used objects. or you can also call the finalize() method in order to release the memory.
    Regards,
    Balaji.SN

  • Oci_close does not release the connection when using DRCP

    Hello everyone,
    we are currently testing the deplyment of DRCP with 11g. I have the whole thing setup (correctly to my best knowledge), but I am facing an issue. The call to oci_close does not seem to release the connection to the pool as I would expect and therefore we see similar behavior like we were getting without using the DRCP.
    Our setup is using two RAC instances running 11.1.0.6.0, I am using PHP 5.1.6 with PECL installed oci8 1.3.4. The DRCP pool is configured and started, each with 100 max servers.
    When the webserver is idle it looks, well, idle.
    SQL> SELECT INST_ID,NUM_BUSY_SERVERS FROM GV$CPOOL_STATS;
    INST_ID NUM_BUSY_SERVERS
    1 0
    2 0
    The script is as simple as it gets:
    <?php
    $c = 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 would expect is that the script would connect to the pool, do the work for a tiny moment and then release the connection for usage by other script.
    But after I point the browser to the script, I get a 30 second loading time (as expected) but the server is busy all the time, like this:
    SQL> SELECT INST_ID,NUM_BUSY_SERVERS FROM GV$CPOOL_STATS;
    INST_ID NUM_BUSY_SERVERS
    1 0
    2 1
    After the 30 second sleep, it is released and busy servers are back to 0.
    If I load the server with ab using 256 connections:
    ab -n 1000000 -c 256 -k http://mywebserver/ocitest.php
    the pool is maxed out and the connects are stalling:
    SQL> SELECT INST_ID,NUM_BUSY_SERVERS FROM GV$CPOOL_STATS;
    INST_ID NUM_BUSY_SERVERS
    1 95
    2 95
    My network config for this service is 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)
    (DELAY=3)
    The phpinfo() look like this:
    OCI8 Support enabled
    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
    Temporary Lob support enabled
    Collections support enabled
    Directive Local Value Master Value
    oci8.connection_class IWPAPP IWPAPP
    oci8.default_prefetch 100 100
    oci8.events On On
    oci8.max_persistent -1 -1
    oci8.old_oci_close_semantics Off Off
    oci8.persistent_timeout -1 -1
    oci8.ping_interval -1 -1
    oci8.privileged_connect Off Off
    oci8.statement_cache_size 20 20
    I am using the instant client for 11g
    Any ideas?
    Thanks!
    Michal

    Don't forget to use oci_free_statement($s); See "Closing Oracle Connections" in The Underground PHP and Oracle Manual. (I was just simplifying this example today for the next release of the manual).
    You may also see the "dedicated optimization", where a pooled server in a non- maxed-out pool is retained (unless needed by another PHP process) under the assumption that the initial PHP process might become active again. See http://www.oracle.com/technology/tech/php/pdf/php-scalability-ha-twp.pdf
    Feel free to email me offline (see my profile) if there are questions/data you don't want to post.
    cj
    Edited by: cj2 on Oct 16, 2008 8:12 AM

  • Plugin to import Aperture librairies does not release the memory used by the librairy after the import is completed

    Let suppose I import a 30GB Aperture Library into LR which is on my HD. After the importation, if I send the imported library to the Trash and clear the Trash the disk space is not released by LR. So after a few importations I get the message that I do not have enough space on my HD to copy another library on the HD from an external drive which contains many Aperture libraries.

    Casita17,  I recommend you evaluate ssprengel's questions and advice.  Please read the following below, as we don't want you to lose images!  I fear that you may be using a "referenced" library in Aperture, and this is the reason your disk space is not being released.  I would NOT RECOMMEND breaking your library into pieces for now.   You may very likely lose critical linkages, especially in albums.  If you have a number of Aperture libraries to begin with, then never mind.  Just be aware, Lightroom users generally recommend using only one lightroom catalog, which it sounds like you're doing.
    Lets forget your system drive for now.  Do you have two times the disk space on your photos drive?  If not, do you have another drive laying around with as much space?  I recommend you make a backup before you continue.
    I'm not quite sure what approach your are using, but I think the root cause of your dilemma exists because of how Aperture and Lightroom manage and store your images.  It may help to post what actions you take, step by step, and include the error messages.
    You may already know some of these concepts, but lets leave no stone unturned.
    First, Aperture uses "libraries", which contain all metadata and previews.  These images may be stored within the database (managed images), outside the database (referenced images), or a combination.  Can you apply a filter to your all photos selection, and tell us how many managed and references images you have?
    Please read this for a better explanation:
    http://www.lifeafterphotoshop.com/managed-vs-referenced-files-in-aperture/
    Second, Lightroom's catalog is like an Aperture library.  Only ALL images are stored externally, "referenced" in Aperture parlance.
    You should be able to create the Lightroom Catalog on any drive.  However, where you eventually store your images depends on what options you choose in the plugin when importing these images.
    Any "managed" photos in Aperture WILL BE copied to the location you specify in the plugin.  Any "referenced" files MAY OR MAY NOT BE copied to the location.  They may be copied, or they they may remain in place, depending what options you select in the plugin.
    Not sure I follow where you have your aperture library, images, and where you eventually want to store your Lightroom catalog, and where you want to store your lightroom images.  I'd suggest not breaking up your Aperture library.
    If you are short on disk space, I suggest making a backup.  Then, select all photos and change them from managed to referenced, which will relocate the photos from within the library, to outside the library, preferably on the same drive.  Then, create a Lightroom catalog, wherever you have room.
    Run the plugin and choose the option NOT to copy the files.  This way, it will leave them in place on your photo drive.  Some images may be copied to the lightroom masters destination any way, so you may want to choose another location on your photo drive in the plugin import options anyway.
    When the migration finishes, you can delete the Aperture library, which will not remove all that much, and will not make much more space available.  And do NOT delete the image location you designated in Aperture, because you'll now be using it for Lightroom.  But this way, you'll be able to keep your space usage under control.
    But KEEP your backup, even after the migration, JUST IN CASE!

  • Application based on JMF does not load the complete Video

    Hi folks!
    I programmed a small application using the JMF. Among other things, this application should load an play video files. But it does not load big video files completly.
    One of my video files (MJPG, 720x576, FrameRate=25.0, Length=999424 28 extra bytes) is 10 minutes long and is pretty huge. It takes 2,1 gigabyte disk space.
    My application loads and plays only 5 minutes of this video. But the VLC media player, windows media player and other video player does play the complete video.
    However, the JMStudio has the same problem.
    Any ideas?
    I'm looking forward to your replies!

    It's taken quite a long time for me to get a resolution. I have a feeling each situation is unique. I tried many of the solutions offered both in this forum and in other ones found online, including Flashplayer forums.
    It didn't make sense that I can view videos from virtually everywhere but I could not from Fox News and CBS. Something was in conflict but I couldn't figure out what.
    It turns out I had an issue with Doubleclick.net. In Internet Options - Security - Trusted Sites - Sites is where you need to go. If you find this is a restricted site - remove it. In my case, it was not there but I added the following to my trusted sites - https://*.Doubleclick.net and low and behold all is well. I watched a number of Foxnews videos and I finally got to see CSI from CBS online.
    How this happened I'm not sure but sometime ago, I had this crazy notion of opting out of advertising via AOL. A number of email accounts are through AOL and I suspect something got corrupted as a result.
    I hope this can resolve this issue for some of you who have this problem but looking at internet options via your control panel appears to be the least aggravating area to start!

  • Device on the switch port does not match the switch port on the device.

    I have a HP 2910al-48G switch with bunch of HP 6200 pro connected to it. The devices on the switch under the VLANs tab show up at the correct port (if they do which is question #2) except for one device. For some reason, a different device shows up on the switch. But if i go to the device page, it shows it is connected to the correct port on the device.
    e.g., On the switch, port 14 shows PC01 when in fact PC02 should be connected.
    If i go to PC02 page, then it correctly says it is connected to port 14.So how can i manually edit the device info on the VLAN page?
    This topic first appeared in the Spiceworks Community

    Settings | Date and Time  then select Automatic date & time, and Automatic time zone. In this way, the carrier time will populate the phone. If it's still going 1hour off, then I'd call VZW and inquire if they have a tower issue, specially if it happens in one particular place.

  • I have an Pioneer HD TV, but it does not have the HDMI port and it only has a USB connection?  Can I still hook up my Apple TV to my TV?

    I just got an Apple TV (the newest black one) and I have an older Pioneer HD TV.  I noticed that I don't have a HDMI port on the TV and only a USB connection.  My question is, can I still hook up the AppleTV to my TV with other connection wires and will it still allow me to use my ITunes music, photos and Netflix with the same picture and sound quality?
    Thank you!

    Welcome to the Apple Community.
    The Apple TV will not work over USB, the only type of connection supported is HDMI.

  • EJB3 : suspend JTA transaction does not release the connection in the XA DS

    Hi all,
    I did a test and after suspending a JTA transaction I note that in the xa datasource the activeconnection = 1.
    So is it normal because I was thinking that when I suspend the transaction the teh connection is released and then after a transaction resume I could continue the transaction with another connection of the xa datasource ?
    Thank you for all..
    Christophe.

    It's a long time ago, but did you ever solve this problem?
    I'm having the same issue with OSB writing to a WLS8.1 JMS queue.
    I have a development OSB server which works fine.
    Pete

  • Nexus 7009 does not show the N7K-F248XP-25 modules ethernet ports n sh run

    Hi everyone,
    I have a question...
    I going to install two Nexus 7009 with three N7K-F248XP-25  modules on each one, I am planning to create 3 VDC, but at the initial configuration the system does not show the Ethernet ports of these modules, even with the show inventory and show module I can see that the modules are recognized and its status is OK. There is something that I have to do before start to configure these modules...? enable some feature or license in order to see the ports with show running CLI...?

    You can enable F1, F2, M1, M1XL and M2XL Series modules. There are no restrictions on the type of mix allowed for the system module-type command. The system module-type command allows a mix of F1, F2, M1, M1XL, and M2XL Series modules in the VDC.
    Note The limit-resource module-type command controls the restrictions on the module-types that can be mixed in the VDC.
    Note Use the system module-type f2 command to allow F2E Series modules into a VDC. The ports from F2 and F2E Series modules can be allocated like any other ports.
    Note The modules that you do not enable must not be powered on after you configure this feature and enter yes. An error message will force you to manually disable these modules before proceeding. This prevents major disruption and service issues within a VDC.
    The no form of this command resets the configuration mode to allow all modules.
    hope this helps

  • EMac modem does not release phone line

    I have an original eMac. The modem is capabale of receiving and sending faxing. However, occasionally it does not "release" the phone line causing any incoming fax to get a busy signal and if you try to dial the phone number you also get a busy signal. Unplugging the phone line from the modem port resolves the issue as does restarting.
    What can be done to fix this issue besides getting a new modem.
    Thanks!

    I recall having similar problems with my home pre-broadband dial-up account under 10.1.5. That was blamed on the computer modem and the ISP modems implementing different versions of the same modem protocol (which certainly doesn't say mush for the 'standard' part of the v.92 protocol). That I thought was fixed in later versions of OS X, but you may still want to contact your ISP to ask them if they're aware of other Mac dial-up users with the same problem and if they can suggest any modem commands to add to your modem command strings. You can ask them to check on their end to see if they're receiving the line release command from your modem when you attempt to hang up.
    Since most Mac-related questions to ISP support seem to garner a response of "huh?", your other option would be to try dropping the modem protocol from v.92 to v.90 (and if necessary even lower) to see if those protocols are more compatible with your ISP's modem banks.

  • Query Designer is not picking the host:port

    Dear All
    We have installed BI 7.0 on Netweaver 2004s alongwith BI Java. When we run a query and execute it does not pick the hostname:port but come as
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZSD_C03_Q009&VARIABLE_SCREEN=X&DUMMY=1
    Please check i have activated all services in SICF and SMICM - all the services is running
    and i have added the icm/hsotnamefull in the instance profile also.
    is there any thing missing.
    Whether PI/Xi is to be also installed and u think it is necessry to configure SLD?
    regards
    balaji

    Japnese yen is maintained in units of 100. Check the entry in TCURX table for Yen. That is why the value is getting multiplied by 100 and getting displayed.
    JPY (Japanese Yen) and others have a 0 in the TCURR-CURRDEC field which means 0 decumals. SAP applications will process amounts in these currencies by dividing the input value by 100 for storing in tables. Then, when being displayed, it will do a conversion exit and multiply the stored table value by 100 to show the correct amount.
    SAP stores currency values in a data type that has a fixed interpretation of two decimal places. There are some currencies that do not work well with that setting. Usually that is because for some currencies , a fraction o the currency unit is meaningless. That is true of the Japanese Yen, the Turkish Lira, Korean Won and many other currencies whose value is often 10 US cents or less.
    Here's a full explanation of the decimal issue in SAP. It is not just
    limited to BW but is a system-wide situation.
    1. By default there are two decimals on the data base, e.g. 123.45
    2. When there is no corresponding entry in TCURX, these two decimals
    are displayed in the query.
    3. When there is an entry in TCURX, it determines the division factor
    when reporting. (default = 2)
    Example TCURX = NO ENTRY: Database entry = 123.45
    There is no division
    The above number is displayed as 123.45
    Example TCURX = 3: Database entry = 123.45
    There is a division by 10 (because 3 - 2 = 1).
    The above number is displayed as 12.345.
    example INR currency.
    Example TCURX = 0 Database entry = 123.45
    There is a division by 0.01 OR Multiplication by 100

  • Photoshop does not release memory after closing document.

    When I close a large document Photoshop does not release the memory. If I open another document the program is slow and not resposive. If I close out of Photoshop and restart it then load the other document it is quick and responsive again.

    A bit late to the party here but this issue is still live and I can't find anything else on the forum similar to it (apologies if there is).
    Photoshop does not seem to re-use memory it just keep allocating new right up to the limit before the prog crashes (same applies to Fireworks) so any batch/script processing of more than a handful of files is impossible.
    I am Photoshop via Creative Cloud (so I am always updated to your latest release), Windows 7 64k with 8Mb memory and am using Norton Intenet Security 20.3.1.22 which is updated daily.

  • External video projector - How can I hook up my Mini DisplayPort to DVI Adapter onto my new MacBookAir if the machine does not have a mini port (but only 2 USBs and 1 Thunderbolt)?

    Hi
    How can I hook up my DVI Adapter onto my new MacBookAir if the machine does not have a mini port (but only 2 USBs and 1 Thunderbolt)?
    Is there a DVI adaptor already for Thunderbolt?
    Thanks,
    JFR

    The Mini Display port and Thunderbolt port use compatible connector bodies. Your current Mini Display to DVI or VGA adapter will still work as before on the newer Thunderbolt capable machines.

  • While configuring speed 1000 i am getting error as sw2-storage-vdc(config-if)# speed 1000 ERROR: Ethernet2/6: Configuration does not match the port capability.

    storage-vdc(config-if)# show module
    Mod  Ports  Module-Type                         Model              Status
    2    32     1/10 Gbps Ethernet Module           N7K-F132XP-15      ok
    sw1-gd78(config-if)# sh module
    Mod  Ports  Module-Type                         Model              Status
    2    48     1/2/4/8 Gbps FC Module              DS-X9248-96K9      ok
    4    8      10 Gbps FCoE Module                 DS-X9708-K9        ok
    7    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    active *
    8    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    ha-standby
    10   22     4x1GE IPS, 18x1/2/4Gbps FC Module   DS-X9304-18K9      ok
    Mod  Sw              Hw      World-Wide-Name(s) (WWN)
    2    5.2(2)          1.1     20:41:00:0d:ec:fb:8a:00 to 20:70:00:0d:ec:fb:8a:00
    4    5.2(2)          0.107   --
    7    5.2(2)          1.8     --
    8    5.2(2)          1.8     --
    10   5.2(2)          1.3     22:41:00:0d:ec:fb:8a:00 to 22:52:00:0d:ec:fb:8a:00
    sw1-gd78(config-if)# sh run int ethernet4/6
    !Command: show running-config interface Ethernet4/6
    !Time: Mon Feb 20 22:56:12 2012
    version 5.2(2)
    interface Ethernet4/6
      no shutdown
    sw1-gd78(config-if)# no shut
    sw1-gd78(config-if)# speed 1000
    ERROR: Ethernet4/6: Configuration does not match the port capability.
    sw1-gd72# sh int ethernet4/6 capabilities
    Ethernet4/6
      Model:                 DS-X9708-K9
      Type (SFP capable):    10Gbase-SR
      Speed:                 1000,10000
      Duplex:                full
      Trunk encap. type:     802.1Q
      Channel:               yes
      Broadcast suppression: percentage(0-100)
      Flowcontrol:           rx-(off/on/desired),tx-(off/on/desired)
      Rate mode:             dedicated
      QOS scheduling:        rx-(2q4t),tx-(1p3q4t)
      CoS rewrite:           yes
      ToS rewrite:           yes
      SPAN:                  yes
      UDLD:                  yes
      Link Debounce:         yes
      Link Debounce Time:    yes
      MDIX:                  no
      Port Group Members:    none
      TDR capable:           no
      FabricPath capable:    yes
      Port mode:             Switched
    sw1-gd72# sh int ethernet4/6 transceiver details
    Ethernet4/6
        transceiver is present
        type is 10Gbase-SR
        name is CISCO-FINISAR
        part number is FTLX8571D3BCL-CS
        revision is C
        serial number is FNS12090EMJ
        nominal bitrate is 10300 MBit/sec
        Link length supported for 50/125um OM2 fiber is 82 m
        Link length supported for 50/125um OM3 fiber is 300 m
        Link length supported for 62.5/125um fiber is 26 m
        cisco id is --
        cisco extended id number is 4
               SFP Detail Diagnostics Information (internal calibration)
                                         Alarms                  Warnings
                                    High        Low         High          Low
      Temperature   36.21 C        75.00 C     -5.00 C     70.00 C        0.00 C
      Voltage        3.29 V         3.63 V      2.97 V      3.46 V        3.13 V
      Current        8.11 mA       11.80 mA     4.00 mA    10.80 mA       5.00 mA
      Tx Power       -2.65 dBm       1.49 dBm  -11.30 dBm   -1.50 dBm     -7.30 dBm
      Rx Power       -2.21 dBm       1.99 dBm  -13.97 dBm   -1.00 dBm     -9.91 dBm
      Transmit Fault Count = 0
      Note: ++  high-alarm; +  high-warning; --  low-alarm; -  low-warning

    Ankit,
    You are trying to set speed 1000 on a 10g sfp.
    type is 10Gbase-SR
    You will need to insert a 1gig sfp and then you will be able to set the speed.
    Also, I noticed that you posted first with interface 2/6 and the output you gave me was for 4/6. Are you sure you're in the right interface?

  • Executable does not release serial port after being stopped

    Greetings:
    I have created an executable that communicates through a serial port.  However, if I stop the executable (not close it), the executable still has control over the COM port.  This causes issues if I need to jump on Hyperterminal to send a couple quick queries to my system.  In order to send the queries, I have to actually close the executable in order to release the COM port.  It's problematic because I then have to start the executable back up, go through another configuration query, etc. and there are parameters from the previous run I would prefer to not lose.
    Is there a way to force a LabView executable into releasing it's hold on a COM port after it's stopped, without closing the executable completely?  If it makes a difference, I'm using LV 7.1 on a WinXP machine.  Thanks for any help!

    Gumby_Dammit wrote:
    I changed the settings to have the stop button visible in the menu bar along with the start button.  This is because the user has to select their COM port before continuing.  
    Raven has already said it but I'll say it a different way.  No user should ever interact with the front panel unless the VI is running.  And when it is running the user should never have access to the abort button in the toolbar.  When you open Internet Explorer do you first need to click the run button?  No it runs when you run it.  Write your program so it is always running, and doesn't have an abort so if the user closes the program you can run the proper clean up like closing COM ports.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Maybe you are looking for

  • Creating text variable, urgent plz

    Hi friends,            I would like to create a text variable on fiscalyear/period. the requirement is when user enters 001.2007   it has to display jan2007                            002.2007   it has to display feb2007 so on.    but when I am tryin

  • Issue while updating EAN in Material Master

    Hi Friends,    We are using the following code to update the EAN of an existing material, but no changes are being done in the article. I am getting a message "Messages for article 100002268: log number 0000000000012552" from the BAPI. When I checked

  • 2504 HA 7.5

    Hey guys, i have the following scenario: 2504 10Lic 2504 15Lic Now my customer want full redundancy for his WiFi. WIth 7.5 we have 1+N Redundancy but just with special HA ordered Controllers. Is there a possibility to rehost the icenses of one WLC, r

  • Code page format

    Hi all, The program containing CODE PAGE FORMAT  is working in 4.6 but it's showing error in ECC6.0. Plz help me how to remove this error in ECC6.0. Regards, Sachinn

  • Zip file exxtracting error of these two zip files

    Hi i download both zip files. when i click on these zip files, i receive a messeage that "NO ZIP FILE, BAD ZIP FILE OR PART OF A SPANNED/SPLIT ZIP FILE". When i try to extract it again show me error . Please guide me. when i download it , it download