Java 1.4.2 Released 74
peterwilm writes "Sun released Java 1.4.2 today. It includes many enhancements and changes among them the native look&feel for Win XP and GTK 2.0 as well as support for Itanium 2."
"I'm a mean green mother from outer space" -- Audrey II, The Little Shop of Horrors
How fast is java? (Score:1, Flamebait)
Re:How fast is java? (Score:4, Interesting)
Re:How fast is java? (Score:1, Interesting)
Re:How fast is java? (Score:5, Informative)
Re:How fast is java? (Score:2, Informative)
Err -- it's not supposed to look like Gnome. GTK = GIMP Tool Kit, not Gnome Tool Kit.
Re:How fast is java? (Score:1)
Re:How fast is java? (Score:2, Interesting)
http://www.fi.muni.cz/~xznamen/java-gtk.png
Re:How fast is java? (Score:5, Insightful)
On topic though, I've noticed a lot of performance enhancements. If you don't load a GUI, you're program will start pretty much instantly, and will only take about 5M of RAM for a small program. GUI's will take 6M more just because. I'm sure a lot of the 6M is external to the VM and/or frame buffers.
In any case, I'm happy that my programs keep getting faster without me having to touch them. Also, now they work on the Itanium2, I can put that in the marketing material. (All with no coding/work on my part.) Sometimes, you have to really appreciate the good sides of Java.
Re:How fast is java? (Score:2)
1. Get a Pentium maching with 32M Ram.
2. Run hello world in Java.
3. Reboot into Linux and run HelloWorld.
It took longer to reboot, so Linux and C is Slower than Java?
I think what you mean is that Java takes too long to start, and I, and everyone in the whole community, agrees with you. However, if you say that a Java program is unusable for user interaction on a pentium, you're just trolling.
You're point is the focus of this release of J
Re:How fast is java? (Score:2)
Hello from Pentium 166 MMX/32 Megs of RAM. Java is slow here even for user interaction. I run CGoban (Go Client and SGF editor). It's slow and I'm not talking about startup time. I have an older version by the same author written in C. It's fast.
Fade in to Pentium III 700 MHz 512M
Re:How fast is java? (Score:2)
You can't compare versions of software that way anyhow. Software usually gets slower every revision just because. If it wasn't that way, then Windows XP would run really fast on a Pentium 166 since it is 5 generations
Re:How fast is java? (Score:2)
Re:How fast is java? (Score:4, Insightful)
If you have 11 threads, and you are using 300M, you are getting around 90% usage of a 32M heap. This means the VM has to relocate memory in order to bring up new windows, and text files you have open will be fragmented and/or garbage collected when you switch away.
Really, you should try -Xmx256M, and I bet it runs much smoother.
The default settings only lets java claim 64M of RAM last time I checked.
Isn't it funny that everyone complains about Java's memory footprint when in fact the memory usage is usually about 10% of what they think it is because Java spawns at least 4 threads, and usually 5-6. Console applications use about 5 threads and consume about 1M of RAM, but they get reported as 5M or so RAM.
By default, the OS will report each individual thread as having access to the heap, so each thread is claiming about 3M of RAM in eclipse on my computer. So, windows adds them all together (11 threads) and tells me there is 30M of RAM in use. (It will actually start with only 3M of heap on my computer, but it's slow.)
People on Linux systems add together all the VM memory usage and say Java is using 1G of RAM on my linux machine (because Java on Linux uses more RAM for some reason.) The real way to calculate the ammount of RAM in use is to take the RSS field of "ps" of the largest process (they should all be the same, but sometimes they have some handles that are just allocated to a single thread where the heap is accessable to all.).
Re:How fast is java? (Score:1)
To be fair though, it does have a full J2EE Server/Test environment built in, and it is very useful when you get a chance to work with it between the 2 minute page swaps....
Re:How fast is java? (Score:1)
I'd agree that it is on the server-side that Java's strengths really start to show. The lack of buffer-overruns is rather good, the built-in support for security is rather good, the speed is rather
Re:How fast is java? (Score:1)
Java is slow... absolutely... the good thing is how portable this language is...
Nowadays systems require fast responses, I think for this purpose Java is not the best option.
Swing is great... easy and nice.
I guess programmers just need to make a decision on what their needs are... and what languages provide.
Damn! its all about decisions, isn't it?
startup time improvements (Score:5, Informative)
Re:startup time improvements (Score:5, Informative)
Yeah, that's a HUGE improvement. But playing with the beta, the biggest speed enhancement seems to be in the networking code -- it's a lot cleaner, faster, and not nearly as buggy as 1.4.1
Re:startup time improvements (Score:2, Informative)
Garbage Collection and Java NIO (Score:3, Insightful)
New I/O (NIO)
The following changes have been made to java.nio functionality in J2SE 1.4.2.
* The finalize methods of the primitive channel classes (SocketChannel, ServerSocketChannel, etc.) have been removed (4777499). Performance testing revealed that the presence of these m
Re:Garbage Collection and Java NIO (Score:2, Informative)
http://developer.java.sun.com/developer/
Re:Garbage Collection and Java NIO (Score:1)
but in the mean time do you really want to use finalizers to close your sockets anyways? It might be a crutch but its basically equivalent to not closing them at all.
Re:Garbage Collection and Java NIO (Score:1)
Re:startup time improvements (Score:2)
Perhaps a memory resident component would be a better way to go, although I hate anything that saps CPU cycles.
Re:startup time improvements (Score:3, Interesting)
That's because a large part of some scripting language libraries is native code and is kept as a shared library (to be faulted in as necessary).
Java's libraries are mostly written in Java and they are loaded, verified and usually partly compiled each time. Since is not part of the "text" segment (it's probably in the heap), sharing requires using some shared memory facilities.
I think it would be nice if there was a "javalib" utility that would load up the Java classes, compile them, and produce a
Re:startup time improvements (Score:1)
from the "ya don't say" department (Score:5, Funny)
The Java HotSpot VM cannot expand its heap size if memory is completely allocated and no swap space is available.
Well (Score:5, Funny)
Re:Well (Score:3, Funny)
Yesterday (Score:3, Interesting)
Re:Yesterday (Score:4, Informative)
Re:Yesterday (Score:3, Informative)
Is anyone else having problems to connect? (Score:2)
Re:Is anyone else having problems to connect? (Score:5, Informative)
Same here. After it gets your personal info, it trys to redirect to a server that isn't there. In IE, it leaves that URL in the address bar. Remove the port info and you can keep going.
Re:Is anyone else having problems to connect? (Score:2)
Re:Is anyone else having problems to connect? (Score:2, Informative)
You do know there was a link to skip that and go straight to download, don't you?
XP Look 'n Feel? (Score:4, Insightful)
That's just one more reason why people are flocking to SWT over Swing.
Re:XP Look 'n Feel? (Score:2)
Re:XP Look 'n Feel? (Score:2)
Re:XP Look 'n Feel? (Score:2)
Re:XP Look 'n Feel? (Score:1)
What version is that? (Score:3, Funny)
Re:What version is that? (Score:4, Informative)
Re:What version is that? (Score:2)
"And when will SCO be suing the bastards?"
Heh... Just as soon as they can con a lawyer into believing they have the patent/copyright/etc.
Re:What version is that? (Score:3, Funny)
and so transitivity gives us Java >= Java 2. I always suspected, thanks for the proof.
WOW (Score:1)
Re:WOW (Score:3, Interesting)
Sun seems to be heading more toward the desktop these days, with improved start up time and less memory consumption.
However, they tend not to make any large functionality changes between point releases
Re:WOW (Score:1)
Re:WOW (Score:2, Interesting)
I for one have to still see stable version of
Time will tell though, but I have a good feeling about Java, especialy since the last few releases
test windows java update feature and win a t-shirt (Score:1)
Mother fuckers (Score:2, Funny)
Re:Still building 1.4.1 native on FreeBSD! (Score:2, Insightful)
If your machine is swapping non-stop, it could be thrashing. If it's thrashing, then you should probably give up and buy more memory since you're basically using your hard drive as RAM at this point.
You might want to try generating the Java API docs with 'javadoc' for more VM fun.
Puzzling Download Size (Score:3, Interesting)
On my PC :
j2re-1.4.0_01-windows-i586.exe - 9170 Kb
j2re-1.4.1_01-windows-i586.exe - 7829 Kb
j2re-1.4.2-windows-i586.exe - 14162 Kb
Does anyone understand this ? :-) ... I just assumed the code got more efficient ... but by the same token, it just got a whole lot less efficient ... or bloated, or something. Maybe it's all those multiple environment look'n'feels.
In fact, does anyone know why the download size actually went down betwen 1.4.0 and 1.4.1 ? Not that I'm complaining about that
Re:Puzzling Download Size (Score:4, Informative)
With 1.4.2 they seem to only offer the international version now, hence the increase.
Deadlock Detection finally works?! (Score:1)
These previously unimplemented JVMDI functions have been implemented:
jvmdiError GetOwnedMonitorInfo(jthread thread, JVMDI_owned_monitor_info *infoPtr)
jvmdiError GetCurrentContendedMonitor(jthread thread, jobject *monitorPtr)
Does this mean monitor information is now reported correctly in profiler-dumps and via JPDA? That would be soooo great -- i'm waitng for that for 2 years now. Finding deadlocks using a trial-and-error aproach ist just a pa