Quitting jshell extremely slow on my Mac

Weijun Wang weijun.wang at oracle.com
Thu Jan 9 07:07:57 UTC 2020


I looked into the preferences file with

   defaults read ~/Library/Preferences/com.apple.java.util.prefs.plist /

There are 522 HISTORY_LINE_nnn lines. All look normal. I can still see them with the up-arrow key in jshell now.

It's a pity I don't have a backup for this file so not sure what changed.

--Max

> On Jan 9, 2020, at 2:16 PM, Robert Field <robert.field at oracle.com> wrote:
> 
> Sorry, I meant to write --
> 
>      Seems likely your preferences file is very large or compromised.
> 
> Where it is stored is OS dependent.  This may be of help:
> 
>     https://victor.kropp.name/blog/java-preferences-api/
> 
> -Robert
> 
> On 2020-01-08 18:12, Weijun Wang wrote:
>> Where is the properties file?
>> 
>> Thanks,
>> Max
>> 
>> 
>>> On Jan 9, 2020, at 10:09 AM, Robert Field <robert.field at oracle.com>
>>>  wrote:
>>> 
>>> Max,
>>> Seems likely your properties file is very large or computerised.
>>> Robert
>>> 
>>> 
>>> On January 7, 2020 6:23:15 PM Weijun Wang 
>>> <weijun.wang at oracle.com>
>>>  wrote:
>>> 
>>> 
>>>> Oops, I just fixed this.
>>>> 
>>>> First I was thinking about whether there is something in my $HOME that made jshell slow, so I "export HOME=/tmp/x" and run jshell, it terminates immediately. Then I set it back, the same. Then I opened another terminal windows, still fast. I even restart the system, still fast. I almost feel the command launches a little faster.
>>>> 
>>>> Nothing was left in /tmp/xxx, and I don't know what happened in my real $HOME.
>>>> 
>>>> --Max
>>>> 
>>>> 
>>>> 
>>>>> On Jan 8, 2020, at 7:38 AM, Michel Trudeau <michel.trudeau at oracle.com>
>>>>>  wrote:
>>>>> 
>>>>> I can’t reproduce this.   Anyone else can ?
>>>>> 
>>>>> On Dec 22, 2019, at 5:26 PM, Weijun Wang 
>>>>> <weijun.wang at oracle.com>
>>>>>  wrote:
>>>>> 
>>>>> Quitting jshell with /exit or Ctrl-D is extremely slow here. It just wait for about half a minute and then quit.
>>>>> 
>>>>> If I create a brand new user and run jshell there, it quits immediately. I don't think I've created any startup scripts for jshell for my own user. "find . | grep jshell" in $HOME shows nothing interesting.
>>>>> 
>>>>> Here is a gist of jstack outputs. There are 2 processes. I took once before Ctrl-D (line 426), and multiple times after it.
>>>>> 
>>>>> 
>>>>> https://gist.github.com/wangweij/ead6d024e713f3863df061930e6f2e29
>>>>> 
>>>>> 
>>>>> I'm using fastdebug build 14-ea+24-1107 and I'm on macOS 10.14.6.
>>>>> 
>>>>> What could be the problem?
>>>>> 
>>>>> Thanks in advance,
>>>>> Max
>>>>> 
>>>>> 
>>>>> 
>>> 
>>> 
>>> 



More information about the kulla-dev mailing list