Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-08 Thread elijah baley
Sorry, e-mail is not suitable for debugging - Eclipse/Intellij/NetBeans are... From: waseem.farooqui <waseem.farooqu...@gmail.com> Sent: Wednesday, March 8, 2017 8:05 AM To: dev@mina.apache.org Subject: Re: Apache MINA SSHd default ShellFactory C

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread waseem.farooqui
I am running this code. And change this public boolean authenticate(String username, String password, ServerSession session) { return (GenericUtils.length(username) > 0) && username.equals(password); } by this public boolean

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread Guillaume Nodet
e same as > the built-in. > > > From: waseem.farooqui <waseem.farooqu...@gmail.com> > Sent: Tuesday, March 7, 2017 1:25 PM > To: dev@mina.apache.org > Subject: Re: Apache MINA SSHd default ShellFactory Chocked the resources > > I run the SshSer

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread elijah baley
that runs and then debug your code to see why it is not the same as the built-in. From: waseem.farooqui <waseem.farooqu...@gmail.com> Sent: Tuesday, March 7, 2017 1:25 PM To: dev@mina.apache.org Subject: Re: Apache MINA SSHd default ShellFactory C

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread elijah baley
he.org Subject: Re: Apache MINA SSHd default ShellFactory Chocked the resources The ProcessShellFactory already spawns a thread. Here is the SshServer code which works with multiple clients: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java#L46

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread waseem.farooqui
I run the SshServer code in the link u shared but got the same result. Its because ProcessShellFactory spawns a single thread which is apparently shared among all the clients. Look what I did, I open 2 terminals and connect with the server from terminal 1.

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread Guillaume Nodet
The ProcessShellFactory already spawns a thread. Here is the SshServer code which works with multiple clients: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java#L465-L591 2017-03-06 9:54 GMT+01:00 waseem.farooqui

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-06 Thread elijah baley
...@gmail.com> Sent: Monday, March 6, 2017 10:54 AM To: dev@mina.apache.org Subject: Re: Apache MINA SSHd default ShellFactory Chocked the resources You're right about the server being singleton, but my problem is with the ShellFactory. I used the recommended code found here <https://mina.apac

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-06 Thread waseem.farooqui
You're right about the server being singleton, but my problem is with the ShellFactory. I used the recommended code found here , and it's giving me the same problem. It basically only caters to one client at a time. If multiple clients

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread elijah baley
oqu...@gmail.com> Sent: Thursday, March 2, 2017 12:53 PM To: dev@mina.apache.org Subject: Re: Apache MINA SSHd default ShellFactory Chocked the resources How do you do that ? I am connecting multiple client with the servers i-e I open 2 terminals and ssh the server with both of them. I open a new

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread waseem.farooqui
/How do you do that ? / I am connecting multiple client with the servers i-e I open 2 terminals and ssh the server with both of them. I open a new thread at every new connection like this public static void main(String[] args) { new Thread(new SshDaemon()).start(); }

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread waseem.farooqui
How do you do that ? I am connecting multiple client with the servers i-e I open 2 terminals and ssh the server with both of them. I open a new thread at every new connection like this public static void main(String[] args) { new Thread(new SshDaemon()).start(); }

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-02-27 Thread elijah baley
"I am creating a new Thread for every user but If more than one user connect at the same time I just allow 1 user to enter the command. " How do you do that ? Perhaps the load you are experiencing originates from a malformed exclusion mechanism Also, try using the built-in