• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

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.
     
    I am displeased. You are no longer allowed to read this tiny ad:
    Create Edit Print & Convert PDF Using Free API with Java
    https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!