NIO: how to deal with this exception?

I am doing some performance test. I tried to create 5000 SocketChannel and connected to the same server/port but got the following exception.
java.net.SocketException: No buffer space available (maximum connections reached?): connect
How can I solve this?
Thank.

Allowing writes from both cache & DB is possible with its own set of issues.
The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache.

Similar Messages

  • How to deal with this problem while Flex Integration   SSH

    Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
    Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
    I have  exist project used  SSH ,and now need flex to be use in some new unint.
    I hava follow these step to write my code , please help me to pickup the misstake  i had token.
    (flex4.0  spring 3.6 strust2.2 **)
    1. download the Blazeds file  and spring-flex-core-1.5.2.RELEASE.jar
    (org.springframework.integration-1.0.3.RELEASE.jar also include)
    2. unpack the Blazeds copy the flex folder to WEB-INF 
    3.add the lib/*  to my project lib folder
    4.add some declaration in the web.xml
    5.new a flex-application-config.xml 
    ^^^^ and so on.  I don't know how  to deal with this problem!!!
    Waitting for help!

    The information you provided is totally useless for determining the problem.
    If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH).

  • Move of mailbox with over 30K of folders fails, how to deal with this.

    Hello all,
    I'm in the process of moving all Exchange 2010 mailboxes to newly created databases located on new storage.
    Every mailbox except one moved successfully, the "problem" mailbox keeps failing and I need some advise on how to deal with this.
    The mailbox that keeps failing is only 4 GB but has over 30K of folders that the users created manually over the years.
    They are unable to easelly delete folders as they have created many sub folders within the folders.
    I posted a part of the failed move request log below.
    Can anyone advise on how to solve this?
    Thanks in advance.
    21-2-2015 18:15:13 [EXHUB1] Fatal error MapiExceptionMaxSubmissionExceeded has occurred.
    Error details: MapiExceptionMaxSubmissionExceeded: Unable to save changes. (hr=0x80004005, ec=1242)
    Diagnostic context:
        Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=7574]
        Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=360][latency=0]
        Lid: 23226   --- ROP Parse Start ---
        Lid: 27962   ROP: ropWriteStream [45]
        Lid: 27962   ROP: ropSetProps [10]
        Lid: 27962   ROP: ropSaveChangesMessage [12]
        Lid: 17082   ROP Error: 0x4DA     
        Lid: 18273  
        Lid: 21921   StoreEc: 0x4DA     
        Lid: 27962   ROP: ropExtendedError [250]
        Lid: 1494    ---- Remote Context Beg ----
        Lid: 26426   ROP: ropSaveChangesMessage [12]
        Lid: 27420   dwParam: 0xE1F000B
        Lid: 36537   dwParam: 0xE1F000B
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0xE1F000B 
        Lid: 33375   StoreEc: 0x8004010F
        Lid: 27420   dwParam: 0x806684B0
        Lid: 36537   dwParam: 0x806684B0
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0x806684B0
        Lid: 64931   StoreEc: 0x8004010F
        Lid: 46509  
        Lid: 40193   StoreEc: 0x8004010F
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0x30130102
        Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
        Lid: 64319   dwParam: 0x5000
        Lid: 39743   dwParam: 0x6730
        Lid: 45016   StoreEc: 0x4DA     
        Lid: 57304  
        Lid: 5041    StoreEc: 0x4DA     
        Lid: 4465    StoreEc: 0x4DA     
        Lid: 6926    StoreEc: 0x4DA     
        Lid: 1750    ---- Remote Context End ----
        Lid: 31418   --- ROP Parse Done ---
        Lid: 21457  
        Lid: 19665   StoreEc: 0x4DA     
       at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, SafeExInterfaceHandle iUnknown, Exception innerException)
       at Microsoft.Mapi.MapiProp.SaveChanges(SaveChangesFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.MoveObjectInfo`1.CreateMessage(T obj, GetAdditionalProperties getAdditionalPropertiesCallback)
       at Microsoft.Exchange.MailboxReplicationService.MoveObjectInfo`1.CreateMessage(T obj)
       at Microsoft.Exchange.MailboxReplicationService.LocalMailbox.Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState(Byte[] key, String syncStateStr)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.<>c__DisplayClass57.<Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState>b__56()
       at Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute(GenericCallDelegate operation)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState(Byte[] key, String syncState)
       at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.SaveSyncState(SaveStateFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.BaseJob.SaveSyncState(SaveStateFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.BaseJob.SaveState(SaveStateFlags flags, UpdateRequestDelegate updateRequestDel)
       at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.SortMessages(Object[] wiParams)
       at Microsoft.Exchange.MailboxReplicationService.CommonUtils.CatchKnownExceptions(GenericCallDelegate del, FailureDelegate failureDelegate)
    Error context: --------
    Operation: IMailbox.SaveSyncState
    OperationSide: Target
    Primary (a4966c13-778a-4d70-9087-f077e2523f66)
    Key: FEF1D04E070AB74A99B809B7797674AE000000000000000000000000000000009B5540B45B37774CAB84806C1964B598
    SyncStateLength: 27050362
    21-2-2015 18:15:13 [EXHUB1] Relinquishing job.

    Hi,
    Based on the description, please run the following commands to check if there are any message limit size. Try to increase the limit size then move this mailbox.
    Get-mailbox –identity “user name” | fl MaxSendSize,MaxReceiveSize
    Get-transportconfig | fl MaxSendSize,MaxReceiveSize
    Get-transportrule | fl MessageSizeOver
    Get-sendconnector | fl MaxMessageSize
    Get-receiveconnector | fl MaxMessageSize
    Note: Once we increased the value we need to wait for the AD replication and cache to be cleared and then test the move mailbox.
    If this doesn’t work, please try to move mailbox with the skip corrupted items. This will skip the corrupted items and move only the good items to the target mailbox.
    Similar thread:
    https://social.technet.microsoft.com/Forums/en-US/5383a826-4383-4b26-a503-2c3bb635f9d2/mailbox-move-to-exchange-2010-fails-for-mailboxes-over-23-gb?forum=exchangesvrdeploylegacy
    Best Regards.

  • How to deal with this problem?

    How to deal with this problem?
    We plan to use Oracle Coherence (In Memory Data Grid) for a large-scale application. In order to keep the database table data in Coherence caches, we will create all the corresplonding Java objects (entities) and construct the persistence system using JPA/EclipseLink+JDBC. In this way, any in-memory object update will be persisted to the corresponding database tables.
    The problem is that some existing application codes are updating these database tables directly now. If the direct-database-table update is not permmited in the persistence environment, we have to discard most of the existing application scripts.
    I want to know, in this situation, should I discard most of the existing scripts?
    Are there any other solutions?

    Allowing writes from both cache & DB is possible with its own set of issues.
    The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
    If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
    If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache.

  • When opening aperture I get Warning that says There was an error opening the database for the library "~/Desktop/Feb 12, 2011.aplibrary".  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning?

    When opening Aperture I get Warning that says "There was an error opening the database for the library “~/Desktop/Feb 12, 2011.aplibrary.”  That's it. The program does not open at all.  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning? 

    Might just need to rebuild the library...see this link:
    Aperture 3: Troubleshooting Basics

  • When I attempt to connect my new MacBook Air to my home network I receive a dialogue that says " Could not join name of network .  A connection timeout has occurred.  Any ideas on how to deal with this?

    When I attempt to connect my new MacBook Air to my home network I receive a dialogue that says " Could not join <name of network>.  A connection timeout has occurred.  Any ideas on how to deal with this?

    Please review the following Apple Support article for assistance with troubleshooting wireless connections.
    You may also find this OSXDaily article helpful as well.

  • How to deal with IO Exception: Not  Enough Space

    I always get the error message like IO Exception: Not Enough Space, following is the information on my desk , is not suppose have this happy is that right ?
    why ? and how to deal with ?? I use solars 10 with NetBean 6.9
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/s10x_u8wos_08a
    239468544 7338765 229954672 4% /
    /devices 0 0 0 0% /devices
    ctfs 0 0 0 0% /system/contract
    proc 0 0 0 0% /proc
    mnttab 0 0 0 0% /etc/mnttab
    swap 610684 348 610336 1% /etc/svc/volatile
    objfs 0 0 0 0% /system/object
    sharefs 0 0 0 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    237293437 7338765 229954672 4% /lib/libc.so.1
    fd 0 0 0 0% /dev/fd
    swap 610484 148 610336 1% /tmp
    swap 610360 24 610336 1% /var/run
    rpool/export 239468544 23 229954672 1% /export
    rpool/export/home 239468544 63960 229954672 1% /export/home
    rpool 239468544 34 229954672 1% /rpool
    #

    Thank you for all the replies.
    Just have time come to this forum:
    think you are running out of swap space.Google surge this too,
    at first I install solaria I give 512M out of totally 2G in memory,
    then I run
    # zfs create -V 512M rpool/additionalswap
    # swap -a /dev/zvol/dsk/rpool/additionalswap
    on meantime
    swapfile dev swaplo blocks free
    /dev/zvol/dsk/rpool/swap 181,3 8 1048568 1048568
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/s10x_u8wos_08a
    239468544 7280779 230012901 4% /
    /devices 0 0 0 0% /devices
    ctfs 0 0 0 0% /system/contract
    proc 0 0 0 0% /proc
    mnttab 0 0 0 0% /etc/mnttab
    swap 392944 352 392592 1% /etc/svc/volatile
    objfs 0 0 0 0% /system/object
    sharefs 0 0 0 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    237293680 7280779 230012901 4% /lib/libc.so.1
    fd 0 0 0 0% /dev/fd
    swap                  392760     168  392592     1%    /tmp
    swap                  392616      24  392592     1%    /var/run
    rpool/export 239468544 23 230012901 1% /export
    rpool/export/home 239468544 63989 230012901 1% /export/home
    rpool 239468544 34 230012901 1% /rpool
    /vol/dev/dsk/c7t0d0/unnamed_rmdisk:c
    15618080 1985728 13632352 13% /rmdisk/unnamed_rmdisk
    Edited by: Hjava on Nov 25, 2010 8:40 PM
    Edited by: Hjava on Dec 9, 2010 2:09 AM
    this link is useful
    http://docs.sun.com/app/docs/doc/817-5093/gizet?l=zh_TW&a=view

  • How to deal with Flex Exceptions ??

    Hi ,
    I know how to handle an Exception when dealing with Flex with server side that is , when an Exception comes from the server side (java) i can easily handle that on the fault event with the help of ErrorMessage .
    But can anybody please let me know how to handle an Exception when it comes on to the ActionScript and show it to the User .
    For instance , i have seen a half example like this :
    try
    catch(error:EOFError)
    MyTextFiled.text = error.toString();
    Now please let me know how can i show this to the End User ??
    And i can only see Errors in ActionScript , is there anything like Exceptions on to Flex??
    Thanks in advance .

    you can use any one of following
    mx.controls.Alert.show(
    "Error:"+e.message.toString())mx.controls.Alert.show(
    "Error:"+e.toString());

  • /imq/instances/imqbroker/fs370/txnack 2,8 GB ? how to deal with this?

    hi *,
    we have mass deleted messages yesterday by an internal java program. now my some of my JMQ managers have a txnack file of remarkeable size. will this ever shrink to normal size again?
    how do we get rid of this? what has the custom client done wrong when deleting/consuming messages?
    regards chris

    hi linda,
    thanks for immediate response.
    1) we are facing a file with 2,8 in workds twopointeight --> 2800 MB (not 8)
    2) dump does not work :-( the version i use does not support that command
    imqcmd -b localhost:39176 dump db -o file=XXXXX
    Error [A3021]: Bad command specified: dump3) list txn gives the following
    imqcmd -b localhost:39176 list txn
    Username: admin
    Password: XXXXXXXXXXXXXXXXXX
    Listing all the transactions on the broker specified by:
    Host         Primary Port
    localhost    39176
    There are no transactions to list.4) normally 1-10 messages / transaction in this case an incredible huge number like 10000 - 30000
    --> as a result of this we (in production) should never face this problem in the wild. this originally was caused by our "cleanup script" that to a certain point of time (sunday endo of week) just consumes all unconsumed messages in outr devel environment
    5) we are running a cluster BUT particular this case happened in a SJAS domain of CAPS V6 (embedded mode)
    the client was an external java programm
    6) VERSION i think we are using the same binaries for embedded and non embedded do you know how to detect embedded version?
    ================================================================================
    Sun Java(tm) System Message Queue 4.1
    Sun Microsystems, Inc.
    Version:  4.1 Patch 2  (Build 2-a)
    Compile:  Wed Apr  9 22:49:54 PDT 2008
    Copyright (c) 2007 Sun Microsystems, Inc.  All rights reserved.  U.S.
    Government Rights - Commercial software.  Government users are subject to the
    Sun Microsystems, Inc. standard license agreement and applicable provisions of
    the FAR and its supplements.  Use is subject to license terms.  This
    distribution may include materials developed by third parties.  Sun, Sun
    Microsystems, the Sun logo, Java, Solaris, SunTone, The Network is the Computer,
    We're the dot in .com and  iForce are trademarks or registered trademarks of
    Sun Microsystems, Inc. in the U.S. and other countries.  All SPARC trademarks
    are used under license and are trademarks or registered trademarks of SPARC
    International, Inc. in the U.S. and other countries.  UNIX is a registered
    trademark in the U.S. and other countries, exclusively licensed through
    X/Open Company, Ltd.
    Copyright (c) 2007 Sun Microsystems, Inc.  Tous droits réservés.
    L'utilisation est soumise aux termes du contrat de licence.  Cette distribution
    peut comprendre des composants développés par des tierces parties.  Sun,
    Sun Microsystems, le logo Sun, Java, Solaris, SunTone, The Network is the
    Computer, We're the dot in .com et iForce sont des marques de fabrique ou des
    marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres
    pays.  Toutes les marques SPARC sont utilisées sous licence et sont des
    marques de fabrique ou des marques déposées de SPARC International, Inc.
    aux Etats-Unis et dans d'autres pays.  UNIX est une marque déposée aux
    Etats-Unis et dans d'autres pays et licenciée exlusivement par X/Open
    Company, Ltd.
    ================================================================================
    com.sun.messaging.jmq Version Information
            Product Compatibility Version:          4.1
            Protocol Version:                       4.1
            Target JMS API Version:                 1.1
    Java Runtime Version: 1.6.0_07 Sun Microsystems Inc. /home/caps/tools/jdk/jre7) Queues only (no topics)
    8) how many consumers --> in this case 1
    9) in this case 30000 in other cases 1-10 average with an average size of 1-5k
    10) in this case inside appserver
    11) no HA
    12) my estimation would be a couple of minutes but i do not really know ....
    regards chris

  • How do you deal with this Exception in Java xml transformation

    I was trying to use a java class to do a multiple transformation on and xml file that consists of several xml codes as files.
    This is the Error i got
    Exception in thread "main" java.lang.OutOfMemoryError

    Increase the memory maximum java is allowed to consume, e.g.
    java -Xmx512m ...for a maximum of 512 Megs.
    Regards

  • Why I have to mute Audio Voice Recording Track always in order to subdue the voice recorded when I want to solo other tracks, audio or midi for listening.The other audio tracks don't sound without being muted. Please advise how to deal with this .Thanks

    Why I have to mute the Audio Voice recording track  ( the first voice track ) always in order to sudue its recorded sound while I want to listen to other
    tracks ( either audio or midi tracks ) in solo ?The other audio tracks with voice recording do not have to be muted in order not to  interfere with other
    tracks turned on solo. Can someone kindly explain this phenomenon and any way to fix this ?
    Thanks
    Dan

    Thanks, ATR,
    I wll try this--but I still am unclear on how to do what the Manual says is possible: select clips on another track that WILL be moved, if I so desire, so as to remain synched to the main Video track.
    UPDATE:
    In the case of inserting Freeze Frame, I just tried both Ctrl method and Alt method, and neither worked.
    1. Put Video on Vid1 track
    2. Put Music on Sound Track
    3. Ran a few seconds of Vid
    4. Stopped Vid, selected Freeze Frame
    5. Held down Ctrl key while clicking "Insert in Movie"  also tried with holding down Alt key.
    Result: a 3 second still was inserted int the Vid1 track.  A corresponding gap was created in the Sound Track.
    6. Slid the final part of the Sound Track to the left along the timeline to re-connect it to the next segment created by the above process.
    Result: the video following the final Freeze Frame was pushed to the right end of  Video1 track.
    7. Slid the Sound Track all the way to the left.
    Result: the entire Video 1 Track contents were pushed to the right and divided in pieces.
    I documented each step with screen shots which I can send if you want them and if I can figure out how to do it.
    UPDATE #2
    In the case of inserting a video clip to the Timeline, I just tried both Ctrl method and Alt method, and neither worked.
    1. Locate video in Project Assets
    2a. R click video in Project Assets (pull-down menu appears), hold down Ctrl, click Insert to Timeline.
    Result: Vid clip is inserted on Video 1 track, Sound Track is separated with a corresponding gap.
    2b.  R click video in Project Assets (pull-down menu appears), push Alt
    Result: pull-down menu disappears as soon as Alt is pushed down.
    I can stil drag the Vid clip but it's one more manual step...I love shortcuts!!

  • When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012) any ideas on how to deal with this problem??

    When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012)
    i have recently bought  new laptop and downloaded/installed the newest itunes and this has happened.. any ideas?

    read
    Error -50
    Delete Storm Video, QuickTime, iTunes, then reinstall iTunes. See also KB TS1583for error -50

  • How to deal with  this type of flash warring

    I develop a ocx for playing flash on web .Then I also place a
    swf that has encrypted on web,before it can be played it must
    retrive the need information form ocx for decoding.But when I play
    the swf on web,it will warring that Adobe Flash Player has disable
    this type of unsafe operation.So I can't play the swf normaly , I
    wonder if I should apply a digital signature from Adobe for my ocx
    if I intend to use my ocx on web.

    A digital signature will not solve your problem. A networked
    SWF -cannot- access a local file system SWF. So the security
    sandbox error you're getting is legitimate.
    Please read the Flash Player security articles on the Adobe
    Developer Connection:
    http://www.adobe.com/devnet/flashplayer/

  • How to deal with  this type of flash warning

    I develop a ocx for playing flash on web .Then I also place a
    swf that has encrypted on web,before it can be played it must
    retrive the need information form ocx for decoding.But when I play
    the swf on web,it will warning that Adobe Flash Player has disable
    this type of unsafe operation.So I can't play the swf normaly , I
    wonder if I should apply a digital signature from Adobe for my ocx
    if I intend to use my ocx on web.

    A digital signature will not solve your problem. A networked
    SWF -cannot- access a local file system SWF. So the security
    sandbox error you're getting is legitimate.
    Please read the Flash Player security articles on the Adobe
    Developer Connection:
    http://www.adobe.com/devnet/flashplayer/

  • HT1923 Apple Mobile Device Support will not uninstal.  Any advice on how to deal with this?

    Apple Mobile device will not uninstall.  Other components uninstal ok.  Cannot uninstal and reinstall iTubes.  Any advice?

    Hey AJKP,
    Thanks for the question. I understand that you are experiencing issues uninstalling Apple Mobile Device Support. The following article provides a solution:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

Maybe you are looking for

  • How to change data in item table in sales order in  UI

    Hi Experts , i have 5 products line items in my item table in UI in sales order and i want to change the status of third line item on the basis of some condition . please guide me how to do it . thnx in advance

  • Safari problems on OS4

    Apart from the main problem of my 3GS rebooting after/during calls I also have an irritation with safari. Clicking links in websites either does nothing the first time then works the second time, works the first time, or opens up a dialogue box askin

  • Posting Key and Document type

    Hello, I have just detected an inconsistency in one of my SAP environment (Development).  I have an invoice posted from the SD module, document type of this invoice is RV. If there is a reason to cancell this invoice, the transaction used is VF11. Th

  • Can't get phone to turn back on!

    Last night I dropped my phone accidently from about 2 ft off the ground. When I picked it up, I noticed it wouldnt turn back on.  This morning I tried to plug it into my charger, and I noticed that they red light came on for a second and then my scre

  • Number of Masters

    Hi, I was just wondering if the forum had any thoughts on the acceptible(optimal), number of master sites that could be used on a large global system with a slow network and very few data changes. TIA Marc