Click here to Skip to main content
16,011,374 members
Home / Discussions / Java
   

Java

 
GeneralRe: How can I use relative path in java to read a file ? Pin
Richard MacCutchan30-Jun-10 21:27
mveRichard MacCutchan30-Jun-10 21:27 
GeneralRe: How can I use relative path in java to read a file ? Pin
002comp30-Jun-10 22:09
002comp30-Jun-10 22:09 
GeneralRe: How can I use relative path in java to read a file ? Pin
002comp1-Jul-10 1:43
002comp1-Jul-10 1:43 
AnswerRe: How can I use relative path in java to read a file ? Pin
anand kr25-Aug-10 16:41
anand kr25-Aug-10 16:41 
QuestionHeap space option -xms and -xmx Pin
002comp22-Jun-10 19:40
002comp22-Jun-10 19:40 
AnswerRe: Heap space option -xms and -xmx Pin
Cedric Moonen22-Jun-10 20:22
Cedric Moonen22-Jun-10 20:22 
GeneralRe: Heap space option -xms and -xmx Pin
002comp22-Jun-10 20:53
002comp22-Jun-10 20:53 
GeneralRe: Heap space option -xms and -xmx Pin
David Skelly22-Jun-10 22:33
David Skelly22-Jun-10 22:33 
The first thing to be aware of is that if you are running under Windows, you won't be able to use much more than 1Gb of memory for your Java heap space (certainly true for 32 bit, may be different for 64 bit Windows). The reason is that the Sun JVM requires heap memory to be allocated contiguously (in other words, in one big continuous block of memory). Because of the way Windows loads DLLs into memory, Windows can't normally allocate contiguous blocks of memory bigger than roughly 1 gig (off the top of my head the figure that springs to mind is 1.2Gb but that may be wrong). You can do things like shuffling DLLs around but even then you don't get a lot more and it's probably not worth the effort. Things may be different with 64 bit Windows, I don't know because I've not worked with it very much yet. Things may also be different with other JVMs (I used to use JRockit 5 years ago with WebLogic and that was the same at the time, but I believe that now it no longer requires contiguous memory and so does not suffer from this problem.)

But I would turn this question around: what are you doing that is blowing so much memory so quickly? It sounds to me as if there is something amiss here and instead of throwing more memory at the problem, maybe you could reconsider your design?
GeneralRe: Heap space option -xms and -xmx Pin
002comp22-Jun-10 22:53
002comp22-Jun-10 22:53 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 0:56
002comp23-Jun-10 0:56 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 1:45
David Skelly23-Jun-10 1:45 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) [modified] Pin
002comp23-Jun-10 2:00
002comp23-Jun-10 2:00 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 3:28
David Skelly23-Jun-10 3:28 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 17:42
002comp23-Jun-10 17:42 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 22:38
David Skelly23-Jun-10 22:38 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 22:50
002comp23-Jun-10 22:50 
Questionhow to validate date Pin
kirancgi22-Jun-10 8:17
kirancgi22-Jun-10 8:17 
AnswerRe: how to validate date Pin
Cedric Moonen22-Jun-10 20:29
Cedric Moonen22-Jun-10 20:29 
QuestionRemember password in website Pin
neer117-Jun-10 20:00
neer117-Jun-10 20:00 
AnswerRe: Remember password in website Pin
Richard MacCutchan17-Jun-10 22:01
mveRichard MacCutchan17-Jun-10 22:01 
QuestionEncrypt using java and Decrypt with C Pin
Murugan k16-Jun-10 19:43
Murugan k16-Jun-10 19:43 
AnswerRe: Encrypt using java and Decrypt with C Pin
Richard MacCutchan16-Jun-10 21:30
mveRichard MacCutchan16-Jun-10 21:30 
QuestionSubstring issue Pin
CodeScribbler15-Jun-10 3:11
CodeScribbler15-Jun-10 3:11 
AnswerRe: Substring issue Pin
Richard MacCutchan15-Jun-10 21:56
mveRichard MacCutchan15-Jun-10 21:56 
AnswerRe: Substring issue Pin
David Skelly15-Jun-10 22:35
David Skelly15-Jun-10 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.