question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect OS bitness detection

See original GitHub issue

I am running a 32-bit JVM on a 64-bit Linux machine.

$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
$ uname -a
Linux arteam 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

System.getProperty("os.arch") call returns i386. But my system is 64-bit anyway, regardless of bitness of the JVM. I guess it’s not a very common combination, but some users still use it.

On a 64-bit JVM detection works quite fine.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Loki-Afrocommented, Feb 1, 2019

@ogerardin well thats the pain and gain game of spring boot … perfect to prototype … but in the real …

1reaction
Loki-Afrocommented, Jan 31, 2019

@ogerardin

Since the whole point of this project is to run external commands, It’s the OS bitness that really matters, not the JVM bitness, so I would suggest altering BitSize.detect() to reflect this.

I agree, but windows is just one world. On Linux you can’t even start the java 32 bit binary if you are on a 64 bit system, maybe that changed (knowledge from 2016 …).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect 64 vs 32 bit OS or Process - Windows CMD - SS64.com
Detect a 64 bit Process ; We can detect this with the PROCESSOR_ARCHITEW6432 variable, ; You may often see incorrect suggestions that testing...
Read more >
Win 7 64 bit - Incorrect Operating System Identity
Right-click your Drive icon/ Properties/ Tools/ Error Checking. Try it first by not checking either box (this will run it in a Read-only...
Read more >
Detect 32-bit or 64-bit of Windows - c++ - Stack Overflow
I want to detect whether the current Windows OS is 32-bit or 64-bit. How to achieve it using C++? I don't want processor...
Read more >
How do I determine if my Windows is 32-bit or 64-bit using a ...
From an elevated command prompt, type wmic os get osarchitecture . The output is pretty obvious, I think - it'll return either "32-bit"...
Read more >
32-bit Python on 64-bit Windows reports incorrect architecture
machine returns a misleading value. When running in WOW64, the processor architecture is masked to appear as "x86" when the machine is actually ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found