Spying on Apache and PHP with Strace

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024

Комментарии • 36

  • @thegripmaster666
    @thegripmaster666 10 лет назад +8

    Top quality demonstration. Thank You!

  • @warronfrench8163
    @warronfrench8163 7 лет назад +1

    Hi +elspuddo thanks for this demo. It did educate me a little bit on the mental process of reading an strace capture file. It's something I have been trying to learn for years. This was useful. I need to see more of these though. Thanks!

  • @MathewSnyder
    @MathewSnyder 13 лет назад

    I'll have to apply this to Apache and Perl now. Good job on the video and thanks.

  • @OscarCalcaterra
    @OscarCalcaterra 10 лет назад

    I really enjoy viewing this video!

  • @BenjaminChodroff
    @BenjaminChodroff 13 лет назад

    Very informative - never used strace before so I learned a lot!

  • @statikeffeck
    @statikeffeck 13 лет назад

    very thorough and "extreme" web debugging. Might come in handy one day.

  • @mauroandreolini5278
    @mauroandreolini5278 3 месяца назад

    Awesome demo, thanks! What's the font? Where can I download the background image from?

  • @tomhardy5188
    @tomhardy5188 8 лет назад +1

    sort -k2 -rn /tmp/output | head :) saved TWO kittehs!

  • @pu3he
    @pu3he 13 лет назад

    Great and informative video, many thanks for your effort!

  • @dsterry
    @dsterry 13 лет назад

    Yes, so glad you're making more...

  • @bflance
    @bflance 13 лет назад

    Simply awesome video!
    I wonder if its possible to use STRACE to see if a process is trying to delete files/folders...

  • @AppA
    @AppA 12 лет назад

    Damn this is interesting, I'm going to watch this later when I understand these topics better (especially Unix networking stuff).

  • @pierre-olivierbenoit400
    @pierre-olivierbenoit400 10 лет назад

    This was very useful, thank you.

  • @CleberSLeite
    @CleberSLeite 8 лет назад

    Amazing explanation! My respect o/

  • @miggyshiggy
    @miggyshiggy Год назад

    awesome. thank you sir!

  • @sunical
    @sunical 6 лет назад

    This is amazing! Thanks for sharing it!

  • @blu3h4t
    @blu3h4t 9 лет назад

    Cool, at 11:00 you just confirmed why my FOG servers interface without internet is slow-ish: DNS.

  • @rhohan
    @rhohan 13 лет назад

    video is very informative. please turn your volume up though :)

  • @iamfaze
    @iamfaze 13 лет назад

    Did you bump up the Apache timeouts? IIRC you dont typically get that long to look for it.

  • @danielharris7345
    @danielharris7345 9 лет назад +1

    Very helpful, although I ended up greping for my IP address rather than the PID but left me with a problem ... strace'ing the php script I'm troubleshooting shows the script outputs to the console in around 0.02 seconds ... but all the test I run over the internet show a TTFB of around 0.8 to 0.9 seconds - I've ruled out the network (pings are sub 20ms) and the server load average is very low - any ideas of how to troubleshoot this further?

  • @pondyellow3286
    @pondyellow3286 4 года назад

    Excellent!

  • @juancaicedo5208
    @juancaicedo5208 9 лет назад

    suuuubscribed... very awesome demo.. thanks!

  • @cbttjm
    @cbttjm 10 лет назад

    top notch! thank you very much!

  • @nezarfadle7715
    @nezarfadle7715 10 лет назад

    Simply ... Amaaaaaaaazing ^____^

  • @KenGuest_IE
    @KenGuest_IE 2 года назад

    you can specify the file to cut instead of using cat and redirecting the output (and by using tail instead of head I don't have to type that one extra 'r':
    cut -c12-16 /tmp/output | sort -n | tail
    very cool demo though - I'd no idea about the -s argument that strace has - thank you!

    • @elspuddo
      @elspuddo  2 года назад +1

      Glad you liked it! It's amazing that folks are still getting something out of a 10 year old video. I continue to employ the "useless use of a cat" paradigm simply because I like pipes, and I find the explicit cat satisfying.

  • @illuminatiZ
    @illuminatiZ 9 лет назад

    If i understand well at 3:42, if we didn't have dual stack and IPv6 support we would be unable to find the corresponding httpd PID? strange! It is only possible to do that by pushing the Timeout of Apache. in httpd.conf you can put Timeout 8000 & RequestReadTimeout Header=8000 Body=8000

  • @jamiroph
    @jamiroph 10 лет назад +1

    What are you using as your terminal? I'd love to know what you did to rename your open windows and scroll through them in a list.

    • @ShyamRonline
      @ShyamRonline 10 лет назад

      man screen :)

    • @elspuddo
      @elspuddo  6 лет назад

      That's not the terminal doing that, it's GNU Screen.

  • @cmorrow132
    @cmorrow132 6 лет назад

    Does this not work with php-fpm and per site pools? I get the http worker pid but it doesn't match up to any actual pids on the system

  • @OskarNendes
    @OskarNendes 9 лет назад

    Is it possible to strace all the processes for a specific call?

  • @2_Sec_C
    @2_Sec_C 10 лет назад

    Why doesn't this command work for me lsof -p `pidof telnet`? I'm use Debian Wheezy.

    • @jamiroph
      @jamiroph 10 лет назад

      Does your system have the "pidof" command? You can usually check by running which pidof

  • @2_Sec_C
    @2_Sec_C 11 лет назад

    Any reason why this command doesn't work on my machine?
    root@master:~# lsof -p `pidof telnet`
    lsof: no process ID specified
    lsof 4.81

  • @scoomey
    @scoomey 11 лет назад

    Excellent technique. Sadly I'm still a vi holdout.