This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Java in Linux and Windows  RSS feed

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Out of curiousity, is it true, in general, that Java application (with GUI) runs slower on Linux platform compared to Windows? Does JVM consume more resources on Linux ( i see many threads are started) platform? For example, i run a java GUI apps on a P4 1.8GHz Linux platform and Celeron 600MHz Win2k both have same amount of 512MB Ram. I realize that Win2k fires up the apps much faster than Linux platform. If my observation is true, why? Can someone points me some articles on this topic or share your knowledge with us(me)?
Regards,
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several things you should be aware of when comparing such things.
  • Linux is usually more open about the number of threads started by Java, often even listing them as if they were separate processes. I am not aware that an appllication on Linux typically starts more threads or processes than an equivalent one on Windows.
  • The "X Windows" GUI on Linux was designed from the start as a system to allow the UI to be split between several machines, rather than a single closely-coupled graphical console like Windows. This often has the unfortunate upshot that local GUI applications take longer to start up, because of a more complicated approach. Once initialisaed and running, or for non-GUI applications, I often find that Linux is actualy faster.
  • Linux systems (and Unix systems in general) are often running a lot more programs at once than a typically configured Windows system. What is running depends largely on the choices made by whover built your Linux distribution, but also by later choices to start/stop "daemons".


  • In my experience a Windows box being used for nothing else is indeed often faster at starting up and completing small GUI applications than a Linux box where the installer has accepted the (typically inclusive) installation options.
    Also in my experience, a Linux box being used for nothing else (ie, with only one user logged on and all the web servers, mail servers, DNS servers and so on switched off) is often faster at executing longer-running or non-GUI applications. This is one reason why Linux is so often the platform of choice for server applications.
     
    Don't get me started about those stupid light bulbs.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!