RMI Experts - I cannot connect to server, but connected clients STILL RUN

I am pulling my hair out, I have 4 identical RMI servers running on RH linux 7.0, JDK1.3. The client is a signed java applet that runs with the JRE1.3 under windows. It binds to each of the 4 servers, and unbinds from the 3 with the most clients connected for load balancing and failover.. The servers are set up as:
rmi://12.34.56.78:1099/server1
rmi://12.34.56.78:1098/server2
rmi://12.34.56.78:1097/server3
rmi://12.34.56.78:1096/server4
I am using different ports AND server names, I find that the client confuses things if you don't..
The problem started when I re-deployed the applet, but it didn't work, so I put the OLD version back out there. NO SERVER SIDE changes at all, and the applet that has been working for months is now the same exact jar file.
Here's what's happenning: When I look up all 4 servers, 3 are giving me 'No Name Space', even though I'm positive the code is correct. NEW connections are not being allowed, but clients that are ALREADY connected still run perfectly. It's ALWAYS 3 out of 4 servers down, the 4th one NEVER crashes.. When I re-start the server app, it runs for about 3 minutes and crashes again.
The result is the client only sees one server up and EVERYONE connects to it.. There are about 250 simultaneous connections, and one server cannot handle all this computation..
PLEASE HELP!
Doug

I'm not sure why you care about the connections once
you have chosen the one you want to keep. You didn't
say how your servers really know about the number of
active connections, but if you implement your own
connect/disconnect on top of RMI, then you should be
able to keep your connection counts straight.Well, I just assumed that the connections would stay there, but after some testing, it doesn't look like that's the case at all.. In fact, unless you are calling methods, there are NO TCP connections being maintained to the server at all.. 'netstat -a' on the linux server says there is nothing at all when the client app is idle..
I have a method on the server that gets called by the clients once every couple min's with the user's IP, login, and which app the are using.. The server keep a table of who's logged in (ie, who it's receiving these method calls from), so it konws who's logged in at any given time.. When a user closes the app, this method gets called with some different arguements, then the server removes that entry from the table..
The server checks it's table every so often and flags a field as 'false' every so often.. The client is responsible for calling this method which changes it back to 'true'. The server checks less frequently than the clients call this method, so if the server checks, and the flag is already false, that means the client app closed and didn't notify the server (ie, power failure, process killed, etc..), so the server has a means of timing out users however frequently you set it up for..
I have it set up so the client calls the server method every 5 minutes, and the server checks every 10. It works perfectly and there's hardly any overhead at all.. Even with 400 people (which is the highest peak) on the system (across 4 servers), you can't notice a performance decrease at all.. The load is being balanced something like 98 / 102 / 105 / 96, and before this setup it was more like 40 / 153 / 143 / 70.. So it's well worth it..

Similar Messages

  • Encryption is required to connect to this server but the client library does not support encryption

    Hi ,guys
    I came cross a trouble when I configured connection encryption.
    I met the following problem when I have configured connection encryption done.
    Encryption is required to connect to this server but the client library does not support encryption; the connection has been closed. Please upgrade your client library. [client: ip]
    environment info:
    SQL:SQL2008 \SQL2005\SQL2008R2
    SERVER:WIN2003 \WIN2008R2
    We use C# to develop asp.net webform app, so the provider I use should be SQL client.
    client .NET Framework version:NET Framework 3.5
    Pls tell me why I met this weird problem.
    Thanks in advance.
    Love SQL

    Sure,here is the connetion string of java app.
    jdbc
    db.url=jdbc:jtds:sqlserver://60.x.x.x./TaskSiteInfo
    db.username=xxx
    db.pwd=xxx
    Your initial post stated you were using SqlClient in an ASP.NET 3.5 app.  I think this is an issue with the jTDS client based on the error message.  Are you using the latest jTDS driver?  If so, try posting this issue to
    http://sourceforge.net/p/jtds/discussion/
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • In 1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar shows 100% but task is still running. Where it says x of y items complete, x is y. This also happens in Windows 7 with Bootcamp. Please explain.

    In >1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar sometimes shows 100% complete but task is still running. Under the status bar, where it says something like "x of y items complete," x is greater than y. This also happens in Windows 7 with Bootcamp. Why does this happen?

    In >1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar sometimes shows 100% complete but task is still running. Under the status bar, where it says something like "x of y items complete," x is greater than y. This also happens in Windows 7 with Bootcamp. Why does this happen?

  • My iMac 27inch screen keeps going black but everything is still running in the background? please help

          My iMac 27inch screen keeps going black but everything is still running in the background? please help. I have read that apple are recalling 27inch iMacs....

    Hello @DesCherryBomb,
    I understand that you are having issues with your HP 2310m monitor going blank and/or flickering. I am providing you with some steps you can try below:
    Step 1. Unplug the power cord from the back of the monitor and the wall
    Step 2. Hold the power button down for at least one minute
    Step 3. Plug the power cord back into the monitor and then into the wall outlet (not a power bar or surge protector)
    Step 4. Press the Menu button on the monitor
    Step 5. Navigate to the Factory Reset option and select it
    If the above steps did not resolve your issue you can try the monitor on a computer or other device to see if the issue persists. Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Cannot connect clients to LDAP only CardDav

    Hi All,
    I've got a mountain lion server running 10.8.2 and we're recently migrated our OD from a 10.6.8 server. All the users and passwords work fine for file sharing, contacts (via carddav), calendar, and vpn. However, I'd like to some users via LDAP for machines that are unmanaged but shared computers or ios devices.
    I've got the "directory contacts in search" check marked in the server admin app. The server host name is example.com and I'm trying to setup my ldap clients as below:
    iOS
    Server: example.com
    User Name: user         (not [email protected])
    Password: password
    Description: example.com
    Mountain Lion
    Account Type: LDAP
    server address: example.com
    Server Options: por 636 use ssl
    Description: EXAMPLE LDAP
    Search Base: dc=example, dc=com
    Scope: Subtree
    Authentication: Simple
    User Name: User
    Password: Password
    On iOS devices, I get an error that says "cannot connect using ssl" even though there's  valid certificate on the server for the hostname, I then get an "LDAP Account unable to verify account information" error. On the Macs I can add the account, and it will show under directories, but nothing is returned in searchs.
    As a side note, I do have Google apps setup on the same hostname, with those MX records on the ISP DNS, but not the internal DNS (as when they were on the internal DNS CardDav would not work).
    Any suggestions? Are my search bases wrong? Something I need to configure in the Directory Manager?
    Thanks!
    Fkick

    I was able to get this fixed myself. Basically, I had to have Authentication set to none in order for any device to connect to the server... is there no way to enforce user authentication with 10.8.2 Server?

  • Clients cannot connect using afp running lion 10.7.1, worked ok before upgrade from 10.7 to 10.7.1

    I am running a macminiserver on ahome newtwork.  Original running snow leopard and then upgraded to 10.7 lion on all machine and everything was working fine.  Clients coul connected to shared drives on the server using afp.  However, after upgrading to 10.7.1 on the server and client machines, they can no lnger connect to the drives using afp, however you can connect using smb.
    I ahve tried stopping and starting the afp server, rebuilding permissions on the server - still cannot connect using afp.
    Any ideas?

    Be sure the correct Lion afp port is open on your router, even if you are using an Airport (port 548 tcp). Just do a search on "Mac OS X Lion ports".
    Also, if this is outside of the network, use the full server name in the Finder's Connect to Server, afp://server.com; when it prompts for a username, enter your first name and last name (not your short name) and then you also need to enter your password. If you don't have a fqdn, then you can use the static ip for "server.com"
    It should work, working for me inside and outside of the network. Admittedly, I don't think you need the port on the router for internal use, but you can test both ways.
    When working outside of the network a vpn is not required.

  • I lost my contacts and mail folders on my exchange server but they are still on my MAC. How can I resync?

    I run both a MAC and a PC with two different mail clients Entourage vs. Outlook. I have never had a problem with the clients syncing with the Exchange server until I did an archive of all emails in outlook that were older than this year. Now some subfolders have disapeared on the PC and the Exchange server but still show up in Entourage. How can I resync Entourage to the Exchange and have Exchange server "accept" the Entourage folders as correct?
    Also I use an Iphone and backup to the icloud. So why did my contacts disapear from the iphone and are not restored via icloud? The missing contacts also disapeared from exchange.
    Iphone 4s ver 5.1.1
    Exchange 2003
    MacBook Pro OSX 10.5.x ( I think - since the finder->about this Mac button doesnt work)
    Entourage 12.3.3
    Thanks so much.
    John

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    You cannot Delete from your Purchase history... But... you can Hide...
    iTunes Store  >   http://support.apple.com/kb/HT4919
    Note:
    iCloud only Stores a Link to your Apps...

  • I am having a hard time with fcpx, it is running so slow.  i upgraded my ram to 12 and have cleaned up my computer to run faster and have changed all my files to proxy files but it is still running SO slow.  please help!

    I am having a hard time with my fcp x running so slow.  i can't even move my mouse without the time wheel coming on and staying up for at least 20 some seconds.  I have upgraded my ram to 12 and changed all my files to proxy files; also i cleaned the crap out of my computer removing all other media files I didn't need and it is still running the same.  Please help!  I have a deadline on my short film to be submitted and I can't finish it like this.  Oh also it ran fine in the beginning but and one day it just started doing this out of no where.  Anything will help!  Thanks

    In addition have you got FileVault switched on as that will kill performance.

  • Hp envy m6 screen goes black but computer is still running

    My grandson has a HP Envy M6 laptop, every so often the screen on his laptop goes black but the computer is still running.  If he is watching a DVD on the TV via hdmi cable the movie still plays on the tv but the screen on the laptop is still black.  Sometimes it will come back up, other times he has to turn it off and restart.  Please, somebody give me an answer because my grandson is in college and if I can't get this fixed, he is expecting Grandma to buy him a new laptop.

    Well, I went back and reread your links and realized that the second one was to update the bios.  Since I know that my grandson might not even know what the bios is much less how to update it or know that it needs to be updated. So I updated the bios and although I hesitate to say that fixed the problem since it has only been a couple of house, I haven't had the screen cut out on me since I did the update.

  • Kill rmi server, but Naming.list still works

    Hi,
    i have built an rmi server program, which creates some remote objects and a program which lists them. However, the program still lists the objects after the server has shudown. Only as soon as i kill the rmiregistry, the listing stops. Why?
    import java.rmi.*;
    import java.rmi.server.*;
       This server program instantiates two remote objects,
       registers them with the naming service, and waits for
       clients to invoke methods on the remote objects.
    public class ProductServer2
       public static void main(String args[])
          try
             System.out.println
                ("Constructing server implementations...");
             ProductImpl p1
                = new ProductImpl("Blackwell Toaster");
             ProductImpl p2
                = new ProductImpl("ZapXpress Microwave Oven");
             System.out.println
                ("Binding server implementations to registry...");
             Naming.rebind("toaster2", p1);
             Naming.rebind("microwave2", p2);
             System.out.println
                ("Waiting for invocations from clients...");
          catch(Exception e)
             e.printStackTrace();
    }The following program lists the remote objects:
    import java.rmi.*;
    import java.rmi.server.*;
    public class ShowBindings
         public static void main(String[] args)
              try
                   String[] bindings= Naming.list("");
                   for (int i=0; i<bindings.length; i++)
                        System.out.println(bindings);               
              catch(Exception e)
                   e.printStackTrace();

    The RMI Registry holds references to remote objects. Your "list" goes against the Registry, not the remote objects.
    The Registry doesn't care what remote objects are alive or dead. That's not it's purpose.
    Use unbind() to remove references in the Registry before ending your server.

  • Cannot http to server but I can ping it (What else should I analyze?) HSRP

    I have a web server running nagios. When I web to it appears to be getting blocked or not routed from the wireshark output below.
    I can ping it and the icmp traffic does appear in Wireshark and I get a proper reply.
    What can I look at to help me find what is not routing or is blocking it??
    52878 >http [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=8 SACK_perm=1)
    52878 >http [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=8 SACK_perm=1)
    52878 >http [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=8 SACK_perm=1)
    Second look it appears the destination is All-HSRP-router_fd (00:00:0c:07:ac:fd). Which is a HSRP interface on my 3750 switch with the ip of *.*.253.1. It appears to not be routing on to the 1.0 subnet (vlan 255). When I do a sh ip route I see subnet 1.0 directly connected via vlan 255. So there should be no problems here?
    Third Look:  I just did a tracert to 1.89.  Wireshark just loaded up on a bunch of Time- to exceeded to live exceeded (Time to live exceeded in transit). I also notice when I ping the address 1.89 I get a TTL of 63 when it is only 2 or 3 devices away. Looks like routing or switching issue.
    Fourth Look: I just narrowed down the Time exceeded to live to the .253.1 interface, which is an HSRP interface.
    What can I do to tie it down to a device to this problem?

    Thanks all for you assistance. This appeared to be a self inflicted Routing Issue. On my switch04 I had give int vlan 255 a IP address of *.*.1.26 which made everything on that VLAN route VLAN 255 no the static route that existed. This appeared to be causing a routering loop.
    I finally figured out my staring at my sh ip route output for like an hour. I then shut the int vlan 255 interface and saw it changed my sh ip route interface and fixed the problem.

  • Cannot Connect client computers

    So my church is running Server 2012 Essentials and up until now has had no issues. Today I tried to connect a new workstation and trying to connect to http://server/connect got an iis error, screenshot :
    http://imageshack.com/a/img191/1052/kzni.jpg
    when installing the connector manually i get this error :
    http://imageshack.com/a/img22/7334/l5xo.jpg
    I can ping, remote, do EVERYTHING else except this. I've spent hours trying to hunt this down with no success but I know extremely little about IIS and I feel the problem is in IIS somewhere. 
    Thoughts?
     

    Hi OneArm,
    When you install the connector manually and run the connector wizard, have you typed the server address and
    check if can connect to server? Was the same issue?
    Based on current situation, please navigate to %ProgramData%\Microsoft\Windows Server\Logs. Then check the
    ClientDeploy.log and ComputerConnector.log if you can find some clues that may help us to narrow down this issue.
    Meanwhile, please run the
    Windows Server 2012 Essentials Best Practices Analyzer and check the report if describes issues and provides recommendations for resolving them. Please also check Event Viewer in Windows
    2012 Essentials if find some errors.
    In addition, please use the following tool
    to check IIS Settings.
    Windows Server Essentials - Configuration Troubleshooter
    http://gallery.technet.microsoft.com/Windows-Server-Essentials-556159c3
    If want to know more about IIS, you can post the related IIS issue in the
    IIS forum. I believe we will get a better assistance there.
    Hope this helps.
    Best regards,
    Justin Gu

  • I'm downloading a file which I know has been updated on the server but I'm still getting the old one... I think there is a cache somewhere I need to clear but I'm not sure ?

    I have a file on my own server which is available to the public to download I uploaded a new version so I know it replaced the existing one. But when I try downloading it through Firefox I just get the older version and not the new one... I seem to remember having this problem before and was given details of how to clear the cache concerned, but I don't know for sure. Any help would be appreciated thanks

    Ctrl F5 doesn't do anything. (I'm on a Mac if that makes a difference.) The link is to the online page and it does prompt me for the id and password for that page.
    The page is designed in htm.
    This is driving me a little nuts. I suspect there is a library file somewhere that itsn't being cleared out, but I can't figure out where.

  • NO WINS Server but WIN7 Client Default netBios Setting

    Hi All,
      NO WINS Servers and  all our Windows 7 Clients are set to default to NetBios Settings.
        So do we need DHCP Option set to 046 (Wins/nbt node type 0x8) ?
    AS

    Hi,
    Thanks for your post.
    DHCP option 46, Allows configurable NetBIOS over TCP/IP (NetBT) clients to be configured as described in RFC 1001/1002, where 1 = b-node, 2 = p-node, 4 = m-node, and 8 = h-node.
    The node type can be set to only three modes. The first mode, B-mode, only uses the cache, LMHosts and broadcast. It will not try to use the WINS server.
    For more detail information, you could refer to:
    http://www.techrepublic.com/article/how-netbios-name-resolution-really-works/
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Removed a server but it's still there

    When I attempt to send an email and that attempt fails, I get a list of alternate outgoing servers to use. I've removed ones for which accounts no longer exist. However, those "removed" servers are still given as options for resending outgoing emails. How can I remove them from that list? Searching with Spotlight turns up no files containing the "removed" servers' names.

    Regardless of what your sending problems are, unused outgoing servers shouldn't appear as a choice if you've already deleted them in Preferences > Accounts > Account Information > Outgoing Mail Server > Edit Server List.
    Quit Mail and open it again. Does the Edit Server List window still display any unused servers there? Does Mail still give as options outgoing servers that you've removed from the list? If so, it could be that there is a problem with the preferences file and Mail isn't saving your changes there for some reason, so you may want to try this:
    1. Quit Mail.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. In the Finder, go to ~/Library/Preferences/. Locate the com.apple.mail.plist file and move it to the Desktop (to be deleted if this fixes the problem).
    You'll have to set up your non-Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don't. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    You'll also have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it's enabled.
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

Maybe you are looking for

  • Illustrator CS6 EXTREMELY slow since Mavericks update

    After upgrading to Mavericks, my whole CS6 suite is extremely slow. It's taking several minutes just to open a file, and equally as long to save. Has anyone else had similar issues? I've looked on the forums and see where other users have issues with

  • My internet connection (not WiFi) is slow on my 10.8.4 Mac Mini after installing/removing Norton.

    I believe I've experienced this problem before, but cannot remember the exact solution. The previous solution was deleting a file in the Mac OS (possibly even the finder? but that sounds worrisome), then restarting. I am using a Mac Mini 2.5 GHz i5,

  • Open ended data structure for retrieving SQL data

    I have a flex project that reads data from a database and sends it to my flex app to display in a chart. I need to do this in Actionscript since I have to dynamically create different charts based on the database definitions. Up til now, I have inser

  • Distributed objects

    Hi, I have a doubt while going through mastering ejb book. can any one clarify me abt this of exactly what happening internally. In the implicit middleware: " when a client call a distributed object, the client calls a stub which is a client-side pro

  • How can I remove an icon from the status menu when command and drag doesn't work?

    I am trying to remove a status icon for an application I uninstalled. When I try to drag it, nothing happens, so removing it by the "command"key & drag method isn't effective. Is there another way I can get rid of it?