[erlang-questions] "detached VM" vs "VM under screen"

Zabrane Mickael <>
Fri Jan 6 13:41:33 CET 2012


Why? I see no reason for that to happen.

Regards,
Zabrane
On Jan 6, 2012, at 12:19 PM, Gianfranco Alongi wrote:

> I had concerns that keeping it in screen would use more memory if the
> node started spewing messages?
> 
> Am I right?
> 
> On Fri, Jan 6, 2012 at 4:22 AM, Fred Hebert <> wrote:
>> The tab support has been added to R15, if I recall.
>> 
>> We run erl in -noshell mode, but always distributed. If the need
>> arises, I use a remote shell (still started from the same node) to do
>> my diagnostics/debugging, just connecting as a hidden node and
>> starting a remote job with ^G. I find it nicer than using screen,
>> especially since software like screen or tmux have sometimes frozen on
>> me. In these cases, I think it's simpler to just start a new remote
>> shell from a new connection and leave the application undisturbed.
>> 
>> You just have to be careful not to type 'q()', 'halt()' or
>> 'init:stop()' in the job running on the production node ;)
>> 
>> I generally think it's nicer to do it that way than in a screen
>> session -- that way you can daemonize your Erlang processes, and
>> integrate them better in their environment.
>> 
>> On Thu, Jan 5, 2012 at 12:19 PM, James Aimonetti <> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>> 
>>> We run everything in detached mode, and use a bash script to connect to
>>> the VM when we need access to it directly.
>>> 
>>> Our bash script boils down to:
>>> 
>>> exec erl $ERL_COOKIE -name ${SHELL_NAME} -remsh ${REMOTE_SHELL}
>>> 
>>> with SHELL_NAME usually generated by SHELL_NAME = "con_$(date
>>> +%s)@`hostname`".
>>> 
>>> You won't get tab-complete on your modules/functions (I think the
>>> standard erlang modules work though), but it works well enough for our
>>> purposes.
>>> 
>>> On 01/05/2012 05:45 AM, Max Bourinov wrote:
>>>> We also run everything under screen. And it is nice to have shell = access
>>>> to all things in the running system, but you must know what you do in there
>>>> :-)
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>> On 05.01.2012, at 17:26, Jesse Gumm <> wrote:
>>>> 
>>>> I run under screen, since I run screen for everything already, it's nice to
>>>> always have the erlang shell up and ready if I need it.
>>>> 
>>>> -Jesse
>>>> 
>>>> --
>>>> Jesse Gumm
>>>> Owner, Sigma Star Systems
>>>> 414.940.4866
>>>> www.sigma-star.com
>>>> @jessegumm
>>>> On Jan 5, 2012 7:03 AM, "CGS" <> wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> One major preference to use -detached (implies -noinput which implies
>>>>> further -noshell) option is when you want to create a persistent
>>>>> application which doesn't depend on your connection with the machine where
>>>>> you run the application. It is similar with "nohup" command under Linux. It
>>>>> also implies the use of less resources than "screen", but with no
>>>>> capability to interact directly with it.
>>>>> 
>>>>> CGS
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On 01/05/2012 12:27 PM, Zabrane Mickael wrote:
>>>>> 
>>>>>> Hi guys,
>>>>>> 
>>>>>> Is there any preference between running a VM in a "detached mode"  (i.e
>>>>>> erl -detached ...)
>>>>>> or simply running it inside "screen" for example witout detaching from it
>>>>>> (i.e erl ...) ?
>>>>>> 
>>>>>> What are the pros/cons?
>>>>>> Best practices?
>>>>>> 
>>>>>> Regards,
>>>>>> Zabrane
>>>>>> 
>>>>>> ______________________________**_________________
>>>>>> erlang-questions mailing list
>>>>>> 
>>>>>> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>>>>> 
>>>>> 
>>>>> ______________________________**_________________
>>>>> erlang-questions mailing list
>>>>> 
>>>>> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>>>> 
>>>> _______________________________________________
>>>> erlang-questions mailing list
>>>> 
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> erlang-questions mailing list
>>>> 
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>> 
>>> 
>>> - --
>>> James Aimonetti
>>> Distributed Systems Engineer / DJ MC_
>>> 
>>> 2600hz | http://2600hz.com
>>> sip:
>>> tel: 415.886.7905
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (GNU/Linux)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>> 
>>> iQEcBAEBAgAGBQJPBduYAAoJENc77s1OYoGgHYAIAJmzxw36KZ9zhEAX5EElevNp
>>> +NCYoN83GTdwv1N8i9Br2x2gW/PFWVitDim0bVXxvoUT/40rDtXRxV3EnM4NqIkR
>>> LTIIRD6r2HGEO4T7uIP+jypVqOnhTYZ+pzSpgGN39hnip6B4NZ3gaol8fhe2KfU8
>>> +DGDD08urz3n2w2G/+ps3xSBd3iZSxYA9S/88gKnAxVYkh7BuqTgHjVVZWD+4aNy
>>> Y/MlWG1kR1kpr2qOIquTktQBQybkizSD3AsrsuT5oS7t5bMMXz+DhGM1JNiPobsl
>>> 6WCZF9T1SEtkoWjubwXY8l4JPwcsGhEu8AgSZYMT/BRCN5QzeAlEuGSQ6+ogEuU=
>>> =ajkn
>>> -----END PGP SIGNATURE-----
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://erlang.org/mailman/listinfo/erlang-questions
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions






More information about the erlang-questions mailing list