element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum How good is JVMs in embedded systems?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 463 subscribers
  • Views 350 views
  • Users 0 members are here
  • jvm
  • embedded
  • java
Related

How good is JVMs in embedded systems?

vish
vish over 10 years ago

Hello element14,

 

I just watched this webinar Home Automation at Your Fingertips with Eclipse SmartHome and openHAB. In that, the developers are telling that they are trying to develop the software with pure Java implementation as it will be portable across different devices.

I wonder how effective is running JVMs in an embedded system. With my experience with desktop JVMs, they are resource hungry relative to native C/CPP codes. In embedded systems also, I assume, this will be the case. But as an embedded designer, my focus will be more on cutting down the resource utilization. Then how well JVMs fit into this picture? I'm concerned about CPU utilization and power consumption.

And how well is my Java codes portable in embedded systems? Don't we have to rewrite the device drivers for GPIO and special hardware access? How better this is from having a separate arch dependent module in my C/C++ project and rewrite only that part while porting to a new hardware?

  • Sign in to reply
  • Cancel

Top Replies

  • electronichamsters
    electronichamsters over 10 years ago in reply to vish +1
    Thanks Vish. I was hoping to make it into the top 15, but I guess the competition tight for this one. As a non-commerical DIY thing, I guess 10 minutes is ok, It's ran for a couple months at my house,…
  • mcb1
    mcb1 over 10 years ago in reply to electronichamsters +1
    Ever rebooted a Cisco router ... its 3 mins. I suspect the target market is larger commercial so running a RPi is not really the ideal use case. It will be interesting. Eric Unfortunately not everyone…
  • electronichamsters
    electronichamsters over 10 years ago

    I only have experience with OpenHAB running on Raspberry Pi and Windows PC's.  It's super slow to start up on the Pi, and using top, I get 37% of 512MB ram and 1.3% cpu utilization when idle.  But it takes like 10 minutes for the OpenHAB app to start up on startup.  And the interface isn't very speedy.

     

    However, the Raspberry Pi is kind of bottom of the barrel...on other dual core systems OpenHAB runs much smoother.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vish
    vish over 10 years ago in reply to electronichamsters

    Hi Eric,

    First of all congrats for being a finalist in FMN challenge.

    My actual doubt is about openHAB with rPi only. Startup time of 10 mins!! Isn't it too long image

     

    -vish

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • electronichamsters
    electronichamsters over 10 years ago in reply to vish

    Thanks Vish.  I was hoping to make it into the top 15, but I guess the competition tight for this one.

     

    As a non-commerical DIY thing, I guess 10 minutes is ok,  It's ran for a couple months at my house, very stable, even if kind of power hungry.

     

    I've wondered about whether OpenHAB could be commercialized.  Put a Raspberry Pi board inside a plastic router box and run OpenHAB on it for the most functional home automation around image.  But I guess it would be weird if your router takes 10 minutes after powering up to be functional.  I like that the Eclipse license, the future OpenHAB 2.0, is very permissive and allows commercial use.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to electronichamsters

    Ever rebooted a Cisco router ... its 3 mins.

     

    I suspect the target market is larger commercial so running a RPi is not really the ideal use case.

    It will be interesting.

     

    Eric

    Unfortunately not everyone can make the finalists, but I'm pleased to see they have added some extras.

    For the Wireless Challenge there were extras provided by the sponsor as it went on, so it's entirely possible this may also happen here.

     

    Your solutions are very good and I would suggest trying to stick with the sponsors as much as possible.

    EnOcean do have other units to provide energy, so if you can design something to use them and their RF units .... you never know.

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube