jshell JVM arguments
Richard Kolb
rjdkolb at gmail.com
Sun Feb 21 03:56:00 UTC 2016
Hi Michel.
Thanks very much.
Regards,
Richard.
On 21 Feb 2016 02:07, "Michel Trudeau" <michel.trudeau at oracle.com> wrote:
> We will proceed and create a RFE (request for enhancements) to pass JVM
> options to the child process.
>
> And correct, when running 'while (true) {}' in jshell, it is the child
> process that consumes all the CPU.
>
> Thanks,
> Michel
>
>
>
>
> Richard Kolb wrote:
>
> Hi Michel,
>
> Thanks very much.
> This seems to set the argument on the JShellTool (in VisualVM) which I
> assume it the REPL and not the RemoteAgent.
> I assume the RemoteAgent the JVM process my jshell controls ?
>
> If I run a "while(true){}" in jshell it is the RemoteAgent that consumes
> CPU.
>
> Or maybe I am confused :)
>
> thanks,
> Richard.
>
> On 20 February 2016 at 17:38, Michel Trudeau <michel.trudeau at oracle.com>
> wrote:
>
>> All JVM options needs to be prefixed by '-J'. See javac help as an
>> example.
>>
>> http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html
>>
>> Also, there are no '=' sign in the option below.
>>
>> Try: jshell -J-Xmx1024M
>>
>> You can also using 1g in that case -J-Xmx1g
>>
>> Thanks,
>> Michel
>>
>>
>>
>>
>> Richard Kolb wrote:
>>
>> Hello,
>>
>> I am trying to set the JVM arguments of the jshell child process.
>> For example setting the heap parameters.
>>
>>
>> jshell -Xmx=1024m
>>
>> Unknown option: -Xmx=1024m
>>
>> Any ideas ?
>> (I would rather ask here before asking on the jshell dev list)
>>
>> thanks,
>> Richard.
>>
>>
>>
>
>
More information about the adoption-discuss
mailing list