Skip to content

WinRM4j CliClient doesn't stop #21

@bostko

Description

@bostko

The current CliClient class which Svet had wrote doesn't shutdown, you have to press Ctrl+C to exit each time invoking the Cli.main.
There is some IO thread pool which is CXF is always keeping the cli client cannot stop.
I tested it and it is not a problem. I run more than 15 clients through Apache Brooklyn and the number of threads remained 8.
RAM usage increased with about 10% only which is normal.

I have to dig first how to shutdown properly the pool of Bus objects in CXF.

I can either shutdown each Bus, when command is completed or better I want to find a hook so I can shutdown the pool of Bus objects at the end of the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions