Andy Kurth created VCL-1032:
-------------------------------

             Summary: VIM_SSH.pm::get_config_option_info very slow when using 
run_ssh_command
                 Key: VCL-1032
                 URL: https://issues.apache.org/jira/browse/VCL-1032
             Project: VCL
          Issue Type: Improvement
          Components: vcld (backend)
    Affects Versions: 2.4.2
            Reporter: Andy Kurth
            Assignee: Andy Kurth
             Fix For: 2.5


VIM_SSH.pm::get_config_option_info causes *vim-cmd solo/querycfgopt* to be 
executed on an ESXi host. The output is rather complex.

When utils.pm::run_ssh_command is used to execute the command (_rather than 
OS.pm::execute\_new_), there is a 1-2 minute or more pause as the following 
lines are executed:
{code}
$ssh_output =~ s/.*ssh-askpass:[^\n]*//igs;
$ssh_output =~ s/.*bad permissions:[^\n]*//igs;
{code}

The problem is due to the /s parameter.  Removing it speeds processing these 
lines up.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to