Git Product home page Git Product logo

terminal-codelearn's People

Contributors

csaurav avatar derexeus avatar mortonfox avatar vireshas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terminal-codelearn's Issues

Install moped gem instruction

Include the the instruction for installation of moped gem inside the section "Install the gems for Terminal server".

this is one of the required gems for starting the reel_server.rb.

Bash command output formatting is broken

Formatting works for the basic linux commands but it is not full-proof.

rails new <app name> - the output shows bash codes
ls -al - the softlink light blue color spills over to the subsequent commands.

The output is really slow to appear

The output a command takes a lot of time to appear on the output. Its best that the code (reel-server.rb) should be profiled & time taken by various modules should be dumped in a log file to figure out where the latency is.

To test latency in real-time, siege can be used to send some real-time back to back inputs for different users. Analyzing the log file should point to as what thing took maximum time & then that bottleneck should be worked on.

`npm start` works but `node app.js` fails (& also forever)

Error log below

 ubuntu@ip-10-28-92-62 ~/codelearn/nodejs_terminal$ node app.js

 module.js:349
   Module._extensions[extension](this, filename);
                                ^
 Error: /home/ubuntu/codelearn/nodejs_terminal/node_modules/pty.js/build/Release/pty.node: undefined symbol: _ZN2v86String3NewEPKci
     at Module.load (module.js:349:32)
     at Function.Module._load (module.js:305:12)
     at Module.require (module.js:357:17)
     at require (module.js:373:17)
     at Object.<anonymous> (/home/ubuntu/codelearn/nodejs_terminal/node_modules/pty.js/lib/pty.js:9:11)
     at Module._compile (module.js:449:26)
     at Object.Module._extensions..js (module.js:467:10)
     at Module.load (module.js:349:32)
     at Function.Module._load (module.js:305:12)
     at Module.require (module.js:357:17)

The server starts taking 100%

Leaving the server on using forever make it take 100% CPU. There is no conclusive evidence when it happens. On a daily load of 200 users who are spending around 7-10 min of time, this happens couple of times every day. As for now, I have a cron script that checks if the process is having a high CPU usage & restarts the server using forever. It fixes the problem temporarily.

@dereXeus did some research & figured out that the Node server is not able to close file descriptors when he ran the server using strace. The situation is partially reproduce able if you run the benchmark tests as instructed in README. Once all the connections are done, the CPU does not go back to 0% . So it looks like this issue is similar to what I am getting on production server.

While Googling, I came across nodejs/node-v0.x-archive#5504 & it seems upgrading the nodejs version might fix the issue. I upgraded nodejs on production to v0.10.12 (it is an ubuntu server) but the problem remains.

I also tried upgrading the node version to the latest version but 'npm install' failed for the version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.