Problem with server sockets
Hello all, I am somewhat new to java, and I am having a problem with a server app that I w rote. What is happening is that for each connection to the server, it returns a Socket and co ntinues the conversation. This is fine. The socket does some simple tasks and then I close it. That is the problem. Under heavy load - each new thread has gets the Socket passed to its run method. What happens is that the ports on the box become used up. netstat -t shows tons of ports with TIME_WAIT , waiting to shut down. Now this shutdow n is not happening fast enough, and as more requests come in, more ports are unuseable until the box will not accept any more connections. How does one get the ServerSocket to re-use ports instead of opening new ones? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
Thanks a lot for the help. I'm wondering what is the downside of setting fd_max to some huge number... Is there one? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
First I must say thanks all for the help! In this problem, I really would like to re-use the connections. Is it possible to set SO_REUSEADDR for a server socket in Java? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
Ok , I can't really wait for that to come out :( Any tips on using maybe JNI to set that sockopt? (SO_REUSEADDR) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Why so many java instances when a Java app starts?
When I start a java application on my Mandrake box, and I monitor it using top, I notice that several java instances show up. Why is this? It eats up a ton of my memory, and I don't see the reason for it, as java is multithreaded. How can I change this behaviour? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Using javascript to access applet methods..
Is it possible to use javascript to access applet methods? If so how? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
more Javascript & Java
First. thanks all who replied about my earlier question about javascript. (Extending thanks to those who answered the process question as well) More Javascript& java tho: I'm working on an intranet - and I've been told that I can use Swing applets. What do I need to do to enable that? I need to have javascript events trigger actions in a JTree. I checked out LiveConnect, and it seems to deal more with java writing javascript. This is cool, but not what I need right now. What I need is to pass JavaScript variables dynamically, without page reload, to the applet and have the JTree change state based on that. This solution is targeted for IE as well. Is this possible? How would I go about getting started with that? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Javascript and Java
if this went through great! I'm resending because I qyv'ed up the address... First. thanks all who replied about my earlier question about javascript. (Extending thanks to those who answered the process question as well) More Javascript& java tho: I'm working on an intranet - and I've been told that I can use Swing applets. What do I need to do to enable that? I need to have javascript events trigger actions in a JTree. I checked out LiveConnect, and it seems to deal more with java writing javascript. This is cool, but not what I need right now. What I need is to pass JavaScript variables dynamically, without page reload, to the applet and have the JTree change state based on that. This solution is targeted for IE as well. Is this possible? How would I go about getting started with that? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java for linux on fbsd??
Hello all, What I have to do is set up a freebsd box with java 1.3. We dev on linux boxen, and I was hoping to lean on fbsd's linux compatiblity mode, and just install. Is there any problems with that approach? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
need an FREE EJB server
I need to write a j2ee application, and the time has come to grab a j2ee server. I am looking at Jboss. We're deploying on Linux as well (yay!) Is this a good choice? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
parsing query strings
Hello all, I have a String, which will be a query string from an application. I want to parse it to get at some of the values. Is there a handy class that will do that for me? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Choosing open source app server for linux
Hello all, First, I have no budget for this... :) Having said that - I need to come up with an app server that handles message driven beans and is open source, and is enterprise capable (we're expecting massive traffic) . I have narrowed things down to Enhydra or Jboss. We run a clustered solution here, and that must be factored into the decisions - Java is not popular here ( superstition ) and I have to have this working soon. Which app server should I go with? Enhydra or Jboss? Any suggestions? Please help. Thanks in advance -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
2.4 kernels and Java
What issues have been seen using the 2.4 kernels and java 1.3 ? Do the threading issues lessen or go away? Do I need to change my code? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Choosing open source app server for linux
> I've never used JBoss, but one thing that's noteworthy about Enhydra in your > situation is that it supports load balancing out-of-the-box through the use > of Enhydra Director (an apache module). Unfortunately, I am not using apache. I am using Zeus. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Compatibility problems with IBM JDK?
I'm using the sun jdk for a j2ee project. I'm interested in switching to the ibm jdk. They are supposed to be interchangable, no? Can I successfully do this? What problems would I run into? Thanks in advance Kevin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
