Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Why is java refusing to use more then 4 gigs on 64 bit machine?
Post Body

edit solved. Thanks offbeatdrizzle (see below for details)

Hi, I have a 64 bit windows 10 computer, 64 bit processor, and the 64 bit version of the netbeans IDE, and 16 gigabytes of RAM.

I run my application from the command prompt using "java -jar ApplicationName.jar -Xmx6144m"

the JVM at runtime then tells me it only has a max memory of 3618 MiB (using maxMem), and it de facto hits that limit when I start filling up RAM with objects, too. It never gives me an error, it just goes up to that limit and hangs forever, so I think it's paging the rest of the memory I'm asking it to use.

I have 5-6 gigs sitting around on my machine doing nothing even after it's hit its limit.

How do I get it to actually use those, as I should be able to on a 64 bit hardware and OS?

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
121,955
Link Karma
5,002
Comment Karma
115,643
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago