Forum Replies Created

Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
  • in reply to: Kleo BBpress refresh and main theme changes #34812
     Melamory
    Participant

    Also decided to share final version of it(in case someone needs it):

    /* Enabling to see authors of last posts and their avatar */
    #bbpress-forums .bbp-forum-info .bbp-forum-content, #bbpress-forums p.bbp-topic-meta {
    display: block;
    }
    #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta {
    display: block;
    }
    #bbpress-forums p.bbp-topic-meta .bbp-author-avatar
    {
    display: inline-block;
    padding: 0 10px;
    }

    /* Making avatars rounded */
    #bbpress-forums p.bbp-topic-meta .bbp-author-avatar img {
    border-radius: 100%;
    }
    #bbpress-forums li.bbp-topic-freshness .bbp-author-avatar img {
    border-radius: 100%;
    }

    in reply to: Kleo BBpress refresh and main theme changes #34810
     Melamory
    Participant

    This now works absolutely as i wanted it.
    Thank you very much, sharmstr, you are making ppl happy 🙂

    in reply to: Kleo BBpress refresh and main theme changes #34800
     Melamory
    Participant

    We almost did it!

    what i am missing here:
    in main theme(left side) it should be this way:
    line 1: <Topic name>(now ok)
    line 2: <Author:>(need to make it line 2) <Avatar>(need to make it line 2) <Nickname>(line 2) <where>(need to make it line 2)

    in refresh(right side):
    line 1: <date and time>(now ok)
    line 2: <Avatar>(now ok) <Nickname>(now on line 3)

    in reply to: Kleo BBpress refresh and main theme changes #34796
     Melamory
    Participant

    Thanks, shar, i added this block to Kleo-child:
    /* Making avatars rounded */
    #bbpress-forums p.bbp-topic-meta .bbp-author-avatar img {
    border-radius: 100%;
    }
    #bbpress-forums li.bbp-topic-freshness .bbp-author-avatar img {
    border-radius: 100%;
    }

    Exactly what i wanted.

    It would be just perfect if you could provide me with info how to make them new line(avatars, name and where info).

    in reply to: Kleo BBpress refresh and main theme changes #34786
     Melamory
    Participant

    Okay, thanks for the answer for p2, i will try to “dig it out” in this direction.

    Could you please be more exact in p1 – where should i put border-radius:100%? And how to make it start with the new line(i man what i activated here:
    #bbpress-forums p.bbp-topic-meta .bbp-author-avatar
    {
    display: inline-block;
    padding: 0 10px;
    }

    #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta,
    #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta

    {
    display:inline-block !important;
    }

    )

    Thanks

    in reply to: Kleo BBpress refresh and main theme changes #34782
     Melamory
    Participant

    Hello, sharmstr!
    Thanks for your quick reply.

    I tried what you said, so after
    – Theme Options -> bbPress -> Layout: Left Sidebar
    – Settings -> Forums -> Enable forum root should show topics by freshness

    i see something like this

    which is not actually what i try forum to look like as i need to see main forums(root) in the left side and last replies in the main.
    Maybe i am just missing what i need to do with your answer, could you be so kind to explain it a bit deeper to me?

    And i still looking forward to some changes with last topic poster and his avatar(#1 of my topic), – i am also wondering it there a way to show avatar rounded(in circle way)

    Thanks.

    in reply to: Kleo admin-ajax.php cpu and memory load #34438
     Melamory
    Participant

    Okay, well. Thanks. Ill try to watch for it now. Still havent got who was the culprit :/

    in reply to: Kleo admin-ajax.php cpu and memory load #34431
     Melamory
    Participant

    But we were setting it to 0 already although they were off(notifications)
    Now CPU load seems fine

    in reply to: Kleo admin-ajax.php cpu and memory load #34426
     Melamory
    Participant

    Okay, to sort it out.
    Seems that you solved problem with GET:/wp-admin/admin-ajax.php?action=kleo_bp_notifications_refresh¤t=0 – see none of them anymore. Can you please again describe what was wrong?

    But the problem with value 20000 in file that causes high CPU usage is still here – after setting it back to default(20000) my CPU usage raised from 2-5% to 50-95% again.

    in reply to: Kleo admin-ajax.php cpu and memory load #34425
     Melamory
    Participant

    Thats strange.
    Here – http://5.63.155.58/performance-status?info=30&sort=1&tp=0&prd=1&prd_b=&prd_e=&host=&script=&uri=&mode=0
    i dont see any refreshes anymore. So, were the problem because notifications were turned off?

    in reply to: Kleo admin-ajax.php cpu and memory load #34422
     Melamory
    Participant

    CPU Usage after changes

    in reply to: Kleo admin-ajax.php cpu and memory load #34420
     Melamory
    Participant

    Please, take a look now.
    I changed that file(menu notifications.php) back to 20000.
    Now again CPU usage 90%.
    And no notifications in the menu.

    Can you see it?

    in reply to: Kleo admin-ajax.php cpu and memory load #34403
     Melamory
    Participant
    This reply has been set as private.
    in reply to: Kleo admin-ajax.php cpu and memory load #34400
     Melamory
    Participant
    This reply has been set as private.
    in reply to: Kleo admin-ajax.php cpu and memory load #34389
     Melamory
    Participant

    Still waiting for an answer when you could look at my site strange activity.
    Thanks.

    in reply to: Kleo admin-ajax.php cpu and memory load #34284
     Melamory
    Participant

    Hello, guys. I can give you access, ofc.
    But keep in mind that changing setting of menu_notifications.php(mentioned above interval) really saved my life with this site(idk why, thats one of the questions)

    Please, pm me or give me any other wait to contact you with what info you need to access this site.

    Many thanks for your work.

    in reply to: Kleo admin-ajax.php cpu and memory load #34201
     Melamory
    Participant

    Q1 – “What it returns” – I don’t know. How to check?
    Q2 – “Page it generated” – It is autogenerated. I guess it looks at main page. Actually if i am looking on what is going on on site with Chrome Developer functions i can see this php script runs.
    Q3 – “IP address who generated” – Again – that shows me this mod_performance. I dont see there any option to see who actually generated this script. If you could show me how to do that – i would show you.
    Q4 – “PPl on site” – It is 3-10 ppl online, i even checked it when i was on site alone – it were still every 20 seconds.

    Sorry that i can’t anwer this, – i am somewhat new to technology.

    in reply to: Kleo admin-ajax.php cpu and memory load #34196
     Melamory
    Participant

    Yes, it looks like you are right. Hope to know answer why is it triggered every 20 seconds or even more often still.

    I am also wondering what i really changed in menu_notifications.php and why it helped me so much? I can make short clip or stream it to show that it really somehow lowered my cpu usage by httpd for 50-80%.

    in reply to: Kleo admin-ajax.php cpu and memory load #34166
     Melamory
    Participant

    Sharmstr

    Tried setting it to 6000 as you asked. Still see same every 20 seconds activity.
    I am not telling that my CPU usage and weak page time is a result of this activity, but i see nothing else with mod_performance.

    in reply to: Kleo admin-ajax.php cpu and memory load #34165
     Melamory
    Participant

    Summary

    Problem
    Kleo causes server instability:
    * High CPU Load
    * High Memory Load

    System
    Hardware:
    * VPS server
    * 2GHz CPU
    * 512Mb Ram

    Software:
    * Centos 6 86_64
    * Apache 2.2
    * MySQL, Php
    * ISP Manager

    Monitoring:
    1) Top/ISP Manager -> Proccesses: shows httpd(from 4 to 5) “eating” 30-50% CPU each and ~ 100mb Ram
    2) Log check shows nothing interesting except for lots of internal dummy connections in httpd Access Logs(maybe its not connected with main problem)
    3) Mod_performance results can be found here(live) and they show kleo_bp_notifications_refresh used by admin_ajax.php every 20 seconds as a main cpu usage.
    4) Site load time is weak(2-6 seconds) and sometimes this CPU peak loads cause server to be unreachable(thus using TS server installed there to crash as well)

    Actions:
    1) Changed prefork httpd.conf(mimimized them) to:
    <IfModule prefork.c>
    StartServers 1
    MinSpareServers 1
    MaxSpareServers 2
    ServerLimit 64
    MaxClients 64
    MaxRequestsPerChild 0
    </IfModule>

    from

    <IfModule prefork.c>
    StartServers 4
    MinSpareServers 4
    MaxSpareServers 6
    ServerLimit 128
    MaxClients 128
    MaxRequestsPerChild 1000
    </IfModule>

    Result: httpd instances gone from 4-5 to 2 in top.

    2) Tried increasing Max Memory allowed in wp-config.php up to 256M
    Result: none.

    3) Changed notification time to 0 here
    Result: none, still same here

    4) Changed Value in …/wp-content/themes/kleo/lib/plugin_buddypress/menu-notifications.php
    from
    add_filter( ‘kleo_localize_app’, ‘kleo_bp_notif_refresh_int’ );
    function kleo_bp_notif_refresh_int( $data ) {
    $data[‘bpNotificationsRefresh’] = sq_option( ‘bp_notif_interval’, 20000 );

    return $data;
    }

    to
    add_filter( ‘kleo_localize_app’, ‘kleo_bp_notif_refresh_int’ );
    function kleo_bp_notif_refresh_int( $data ) {
    $data[‘bpNotificationsRefresh’] = sq_option( ‘bp_notif_interval’, 2000000 );

    return $data;
    }

    Result: caused httpd proccesses to “eat” only 1-2% CPU, but still same here(shows some notifications pushed by admin_ajax.php every 20 secongs)

    5) Tried to comment/delete section from …/wp-content/themes/kleo/lib/plugin_buddypress/menu-notifications.php:
    /* Refresh notfications by AJAX */
    add_action(‘wp_ajax_kleo_bp_notifications_refresh’, ‘kleo_bp_notifications_refresh’);

    Result: no changes

    Resume/questions:
    1) Why page load time still so weak? You can try it here: http://www.noremorse.ru
    2) Why mod_performance still shows notifications pushed and CPU loaded every 20 seconds?
    3) What my changes in file(20000 -> 2000000) caused and why httpd CPU usage drastically decreased?

    Sorry for such a long post, but i am trying to give as much information as i can.

    in reply to: Kleo admin-ajax.php cpu and memory load #34153
     Melamory
    Participant

    It is already set up there as 0.
    And i still see something pushes this notifications.
    What else could it be?

    in reply to: Kleo admin-ajax.php cpu and memory load #34151
     Melamory
    Participant

    Thanks, sharmstr.
    Maybe it is set to deal with min version, but it actually helped me(changin value from 20000 to 2000000) a lot. I just tried to set it back and again – 90-100% cpu load.

    Is there a way to turn off this notifications? The ones that i see here

    in reply to: Kleo admin-ajax.php cpu and memory load #34145
     Melamory
    Participant

    A little update.
    I found menu-notifications.php in lib/plugin-buddypress/
    Inside this php i see kleo_bp_notification_refresh.
    I tried to comment this action but it ain’t help.

    Also i noticed that refresh interval for app.js here can be changed:
    $data[‘bpNotificationRefresh’] = sq_option(‘bp_notif_interval’, 20000);

    By changing time here from 20000 to 2000000 i managed to stop httpd proccesses load on my server to 20-30% cpu.
    But still time to load page(you can see it also) is not the best.
    And if i am looking at heaviest scripts(please, take a look here – http://5.63.155.58/performance-status?info=30&sort=1&tp=0&prd=1&prd_b=&prd_e=&host=&script=&uri=&mode=0) i see that this action is being repeated every 20 seconds.
    What can it be and how to “ease” it?

Viewing 23 posts - 1 through 23 (of 23 total)

Log in with your credentials

Forgot your details?