ljd3000 / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

some applications behind shellinabox have excessive load #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. shellinaboxd -b -t -s /:nobody:nogroup:/home/prod/ivans/:URL="${url}" sh 
/home/prod/ivans/clx_3270 --css=/home/prod/ivans/white-on-black.css 
--css=/home/prod/ivans/siab.css --disable-ssl-menu
2. the clx_3270 script is simply a wrapper sh script which passes options to 
c3270
3. wait a while

What is the expected output? What do you see instead?
A typical norma idle c3270 session has no load and remains in a select state, 
when running behind shellinabox, c3270 consumes as much processor time as is 
possible:

last pid:  9117;  load averages: 29.98, 29.57, 29.06                            

                                                    up 1+06:49:19  14:23:20
120 processes: 31 running, 89 sleeping
CPU: 93.4% user,  0.0% nice,  6.6% system,  0.0% interrupt,  0.0% idle
Mem: 76M Active, 298M Inact, 86M Wired, 3764K Cache, 60M Buf, 26M Free
Swap: 991M Total, 991M Free

  PID USERNAME       THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 9019 www              1  98    0  9604K  4624K RUN     0   0:13 11.77% c3270
 9058 www              1  98    0  9604K  4596K RUN     1   0:09  9.57% c3270
 2085 nobody           1  97    0 10628K  4584K RUN     0   7:56  7.57% c3270
 3066 nobody           1  97    0 10628K  4584K RUN     0   6:50  7.37% c3270
 1459 nobody           1  97    0 10628K  4584K RUN     0   8:40  7.08% c3270
 2224 nobody           1  97    0 10628K  4600K RUN     0   7:41  6.59% c3270
 9099 nobody           1  97    0  9604K  4596K RUN     0   0:04  6.59% c3270
 5560 nobody           1  97    0 10628K  4588K RUN     1   4:15  6.49% c3270
 2789 nobody           1  97    0 10628K  4588K RUN     1   7:13  6.40% c3270
 1332 nobody           1  97    0 10628K  4600K RUN     1   8:59  6.30% c3270
 2956 nobody           1  97    0 10628K  4592K RUN     0   6:49  6.30% c3270
 4376 nobody           1  97    0 10628K  4584K RUN     0   5:19  6.30% c3270
 8157 nobody           1  97    0 10628K  4576K RUN     1   1:03  6.30% c3270
 5789 nobody           1  97    0 10628K  4580K RUN     0   3:56  5.96% c3270
 9059 nobody           1  97    0  9604K  4600K RUN     0   0:05  5.96% c3270
 5337 nobody           1  97    0 10628K  4584K RUN     1   4:25  5.66% c3270
 6300 nobody           1  97    0 10628K  4600K RUN     1   3:28  5.66% c3270
 4859 nobody           1  97    0 10628K  4584K RUN     1   4:48  5.57% c3270
 8003 nobody           1  97    0 10628K  4568K RUN     1   1:19  5.57% c3270
 8057 nobody           1  97    0 10628K  4588K CPU1    1   1:09  5.47% c3270
 9116 nobody           1  97    0  9604K  4612K RUN     0   0:01  5.47% c3270
 2304 nobody           1  97    0 10628K  4572K RUN     1   7:45  5.37% c3270
 9111 nobody           1  97    0  9604K  4612K RUN     1   0:03  5.37% c3270
 7586 nobody           1  97    0 10628K  4580K RUN     0   1:49  5.18% c3270
 8997 nobody           1  97    0  9604K  4600K RUN     1   0:06  5.18% c3270
 1282 nobody           1  97    0 10628K  4592K RUN     0   8:57  4.88% c3270
 7334 nobody           1  97    0 10628K  4584K RUN     0   2:08  4.88% c3270
 6156 nobody           1  97    0 10628K  4580K RUN     1   3:37  4.69% c3270
 8989 nobody           1  97    0  9604K  4600K RUN     0   0:06  4.49% c3270
 8277 nobody           1  97    0 10628K  4592K RUN     1   1:01  4.39% c3270

What version of the product are you using? On what operating system?
SVN r239

Please provide any additional information below.

Original issue reported on code.google.com by mnsli...@gmail.com on 15 Oct 2010 at 7:25

GoogleCodeExporter commented 8 years ago
Can you get an strace log for this applications so that we can see what they 
are trying to do.

Original comment by zod...@gmail.com on 15 Oct 2010 at 7:51