Re: Sun vs Blackdown/Hotspot vs classic and udp sockets
On Thu, 26 Apr 2001, Vladimir G Ivanovic wrote: > Why don't you try IBM's JDK? The Volano test results show it to be a > powerful performer, and coupled with jikes, it makes pretty nifty > development environment. Seems like an all-around winner to me. Yes, but it has some very **nasty bugs**. Two of them which I have recently run onto (present in SR6): - You cannot create two multicast sockets in the same process (some confusion with the kernel interfaces, works with 2.2.x kernels but not with 2.4.x) - Interrupting threads that do reads in native code does not result in an EINTR in the native read call None of those occur with blackdown 1.3.0FCS (haven't tried sun) Supposedly the first one will be fixed in SR7, and I haven't reported the second one yet (I run on it a couple of days ago and haven't found the time to isolate a small test program which gets directly to the point) -- but there is no release date for SR7... As a general observation, IBM's jdk is perceivably faster than blackdown jdk, but the latter is far more reliable. -- dimitris mailto:[EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java sound install
Hi all , i am trrying to get java to play sounds to my RH7 box. i am able to play sounds from native linux apps so i think my sound card is properly conf when i try to play sounds from java i get an error saing the swvice is not acceccible and then i get a segmentation fault does any one have any good ideas how i can go about that ? TIA Billy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun vs Blackdown/Hotspot vs classic and udp sockets
On Thu, 26 Apr 2001, Vladimir G Ivanovic wrote: > Why don't you try IBM's JDK? The Volano test results show it to be a > powerful performer, and coupled with jikes, it makes pretty nifty > development environment. Seems like an all-around winner to me. > > But that may not solve your problem. I seem to remember some funkiness > having to do with signals and green threads. Sorry I can't be more > helpful, but it might be a starting point. I wrote off the IBM JVM last year after living with swing bugs and a broken debugger that dumped core every time I tried to use it. I deleted it off my machine after I spent a day crafting a reproducible test case for the debugger core dump and posting a polite bug report on their news group, only to have them cancel the post. I deleted all IBM jvms from my machine at that point and haven't used one since. I don't recommend anyone use IBM's JVM, especially on Linux. Not when they treat users like they treated me. So, no, I haven't wasted any time testing with the IBM JVM because I won't be using the IBM JVM for my application, *ever*. I'm writing a GUI, so I don't need speed, I need the memory footprint and the stability of Sun/Blackdown. -- Joi EllisSoftware Engineer Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED] No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun vs Blackdown/Hotspot vs classic and udp sockets
dear all I am using tomcat on linux. My servlet is in a classes subforder under my home. When servlet run, I don't see the output from System.out.println printed to the screen. What should I do in order to see the output. (Before I was using NT, the output would be printed to the Dos window). Please help me. Thanks. Susan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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: Sun vs Blackdown/Hotspot vs classic and udp sockets
On Fri, Apr 27, 2001 at 08:27:23AM -0500, Joi Ellis wrote: > I wrote off the IBM JVM last year after living with swing bugs and > a broken debugger that dumped core every time I tried to use it. I > deleted it off my machine after I spent a day crafting a reproducible > test case for the debugger core dump and posting a polite bug report > on their news group, only to have them cancel the post. I deleted > all IBM jvms from my machine at that point and haven't used one since. > I don't recommend anyone use IBM's JVM, especially on Linux. Not when > they treat users like they treated me. > I have to agree about the IBM JVM. Jikes really rocks, but their 1.3 JVM had fundamental problems that rendered it useless for awt based applications, which of course includes Swing, and it completely sucked. To be fair I haven't tried whatever their latest offering may be, but then after the wasted time of downloading and installing what, suprisingly, turned out to be a fiasco, I don't see why I should given that Blackdown works acceptably. Nick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
Hi > I am somewhat new to java, and I am having a problem with a > server app that I wrote. > What is happening is that for each connection to the server, it returns a > Socket and continues 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 shutdown 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? 1. I'm assuming you are "NULL"ing the used sockets, so they get garbage collected? 2. Under heavy load, this kind of thing can be expected. Solutions to this are: a) Increase the number of possible file descriptors on your system, as each socket is a file descriptor, and hope that by the time you've maxed this number out, Java has decided to start GC'ing your existing connections. On Unix, find a file called /etc/system and add the lines: set rlim_fd_max=1024 set rlim_fd_cur=128 fd_max is the maximum number, change this to some big number, e.g. 65535. fd_cur is the current number. I'm afraid I don't know the Linux equivalent. b) It may be helpful to use pooling. I know that Resin (a JSP server) allows you to setup an object-pool for client-handling objects, which then reduces time needed to deal with socket, when then reduces the overall load on the server. c) Impose a wait before accepting the next client connection. I had to do some testing with Resin a while back under HEAVY loads. The result was: it does well, but once it starts getting a backlog of client connections to service, kiss it goodbye. I'm not blaming Resin, it's great, but I think the JVM just can't cope. This was with Java 2 Enterprise Edition from Sun on Solaris. I hope some of this helps. Best Regards Nicholas P.S. I am talking over 10 connections in 30 seconds here. P.P.S. I think I remember having problems with congestion, rather than running out of sockets as well. P.P.P.S. Apache did cope a lot more favourably. But then it sets up 4 processes, to load balance between each other. P.P.P.P.S. If you *REALLY* need that many connections, have multiple boxes, and load balance. === Nicholas WrightImperial Software TechnologySenior Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
What causes "failed to create native peer"
I am working on an application that uses drag and drop and am attempting to create my own DragGestureRecognizer and am getting this message when I try to start a drag operation. If I use the default recoginzer every thing is fine. Is there something that needs to be done in the recognizer that would prevent this message? Is there somewhere i can see the source for the default one? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
Kevin, You probably need to use the Socket.setSoLinger() call. Nathan On Fri, Apr 27, 2001 at 09:59:57AM -0400, kevin1 wrote: > 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] > -- 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
> 1. I'm assuming you are "NULL"ing the used sockets, so they get garbage
> collected?
You should not rely on garbage collection for scarce resources such
as file and socket handles. Make sure you invoke socket.close() when
you're done.
Since you're working with threads, it is possible that a silent exception
is breaking your expected flow of execution. Whenever I deal with
such scarce resources I write code like:
Socket socket = ...
try {
// do the work
} finally {
try { socket.close(); } catch (Throwable e) { ... log ... }
}
Alexander
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java sound install
I've seen a couple instances of this, almost all are attributed to the sound card driver. If you have sb live cards then there is an open source driver from opensouce.creative.com (driver called emu10k). Otherwise check with the vendors site, until ALSA is complete, opensound.com have probably the most stable driver for other cards, they have evaluation downloads there too regards calvin [EMAIL PROTECTED] wrote: > > Hi all , > i am trrying to get java to play sounds to my RH7 box. > i am able to play sounds from native linux apps so i think my sound card is properly >conf > when i try to play sounds from java i get an error saing the swvice is not > acceccible and then i get a segmentation fault > does any one have any good ideas how i can go about that ? > TIA > Billy > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JavaSound in general
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Did u say u herd clicks ? Well I'm not sure if it's a click or just a very brief silence :) It's sort of like the thing you hear when looping the same thing over and over again; expect nothing's looping. It's a click, but yet it's not... > If u did, then i dont think that is an underrun problem. The kernel, on > underrun, actually keeps on feeding the device with silence. Yeah I don't think it's an underrun either. It *sounds* like a brief underrun, but I don't think that's the problem. I *am* using Alsa's OSS emulation rather than the native OSS drivers; but I've had no emulation problems before. - -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE66dGiDNor2+l1i30RAr2+AJwJJF4/DynvrRB3KF4RSFju90Pt9QCgsrvd hsBlIIVQXTa8z6hGak1Srts= =VzfO -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
