Jump to content
TrinityCore

cloudfox

Plebs
  • Posts

    8
  • Joined

  • Last visited

Posts posted by cloudfox

  1. 17 hours ago, Shauren said:

    There is a config for this - set Console.Enable to 0 for background processes

    ohh could you please tell me where is this setting?

    is it here?

    i find something like this in .\TrinityCore\src\server\worldserver\Main.cpp line 304 to 310.

    // Launch CliRunnable thread
        std::shared_ptr<std::thread> cliThread;
    #ifdef _WIN32
        if (sConfigMgr->GetBoolDefault("Console.Enable", false) && (m_ServiceStatus == -1)/* need disable console in service mode*/)
    #else
        if (sConfigMgr->GetBoolDefault("Console.Enable", false))
    #endif

     

    i change  two 'true'  to 'false' and recomplied. problem still exist :(

  2. thanks my friends,

    but when i dont use "nohup ./worldserver &",   just use  "./worldserver" to start it.

    the cpu cost is only 1% or little higher  like my attached pic.  

    how do you guys running TC server on linux?

    i tried to run  "./worldserver"  . when it's start complete i directly shut the telnet window. 

    but if i done this the server session "worldserver" is killed by system.

    捕获1.PNG

  3. hi there

    i've met a strange problem on linux running TC worldserver.

    everything is ok when i direct type ./worldserver and don't close ssh window. the worldserver session only take 1% less cpu use.

    but when i try to use nohup or setsid to put worldserver backgroud.

    this world server instantly taking 100% cpu percent .no matter how long i wait,%cpu will not come down.

    i even try to use systemctl's service to made server run background,and i found server and systemctl still got 100% cpu use.

    i'm asking for help about how to run server background on ubuntu16.04,and not with 100%cpu use.

     

    thanks!!

  4. hello guys,i met a problem in linux core complie:

    ubuntu 16.04  trinity version is 3.3.5

    i follow the guild to the CMAKE step,and it's done.

    then i make,it,it will stuck at 18% every time 

    i dont understand how did this happen,missing some lib? please help me.

    $ cmake ../ -DCMAKE_INSTALL_PREFIX=/home/trinity/server
    -- The C compiler identification is GNU 5.4.0
    -- The CXX compiler identification is GNU 5.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detected 64-bit platform
    -- UNIX: Using default configuration directory
    -- UNIX: Using default library directory
    -- UNIX: Configuring uninstall target
    -- UNIX: Created uninstall target
    -- UNIX: Detected compiler: /usr/bin/cc
    -- GCC: Enabled c++11 support
    -- GCC: Enabled C99 support
    -- GCC: SFMT enabled, SSE2 flags forced
    -- Using mysql-config: /usr/bin/mysql_config
    -- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
    -- Found MySQL headers: /usr/include/mysql
    -- Found MySQL executable: /usr/bin/mysql
    -- Found git binary : /usr/bin/git
     

     

     

    [ 17%] Built target shared
    Scanning dependencies of target gamePCH.cpp_dephelp
    [ 17%] Building CXX object src/server/game/CMakeFiles/gamePCH.cpp_dephelp.dir/PrecompiledHeaders/gamePCH.cpp.o
    [ 18%] Linking CXX shared module libgamePCH.cpp_dephelp.so
    [ 18%] Built target gamePCH.cpp_dephelp
    Scanning dependencies of target generate_gamePCH.cpp
    [ 18%] Generating gamePCH.h.gch
    [ 18%] Built target generate_gamePCH.cpp
    Scanning dependencies of target game
    [ 18%] Building CXX object src/server/game/CMakeFiles/game.dir/World/World.cpp.o

    c++: internal compiler error: Segmentation fault (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    src/server/game/CMakeFiles/game.dir/build.make:62: recipe for target 'src/server/game/CMakeFiles/game.dir/World/World.cpp.o' failed
    make[2]: *** [src/server/game/CMakeFiles/game.dir/World/World.cpp.o] Error 4
    CMakeFiles/Makefile2:1330: recipe for target 'src/server/game/CMakeFiles/game.dir/all' failed
    make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2
    $  

     


     

     

×
×
  • Create New...