I need your help

28 views
Skip to first unread message

吴连祥

unread,
Feb 6, 2014, 9:25:54 PM2/6/14
to chicagoboss
Dear Chicagoboss,
 
      I am learning to use the chicagoboss to build a project. but now I encounter a problem as follow:
 
09:54:00.327 [error] Supervisor poolboy_sup had child boss_db_controller started with {boss_db_controller,start_link,undefined} at <0.229.0> exit with reason killed in context child_terminated
 
 
The Chicagoboss verson I am using is  ChicagoBoss-0.8.7,  and I use mysql database, boss.config about database is:
 

%% Database %%
%%%%%%%%%%%%%%
%% db_host - The hostname of the database. Defaults to "localhost".
%% db_port - The port of the database. Defaults to 1978.
%% db_adapter - The database adapter to use. Valid values are:
%%     mock - In-memory (non-persistent) database, useful for testing
%%     mnesia - Mnesia
%%     mongodb- MongoDB
%%     mysql - MySQL
%%     pgsql - PostgreSQL
%%     riak - Riak
%%     tyrant - Tokyo Tyrant
%% db_username - The username used for connecting to the database (if
%%   needed).
%% db_password - The password used for connecting to the database (if
%%   needed).
%% db_database - The name of the database to connect to (if needed).
%% db_cache_enable - Whether to enable the cache in boss_db. Defaults
%%   to false. Requires cache_enable to be set to true.
    {db_host, "localhost"},
    {db_port, 3306},
    {db_adapter, mysql},
    {db_username, "root"},
    {db_password, "123456"},
    {db_database, "ewtmps"},
 
 
It is a web project, when the concurrent post request is less than 5, it works correct, but when the concurrent is greater than 5, it will report errors like
09:54:00.327 [error] Supervisor poolboy_sup had child boss_db_controller started with {boss_db_controller,start_link,undefined} at <0.229.0> exit with reason killed in context child_terminated
 
why and what shoud I do? I don't know
 
I need your help! Wish your reply!
 
Thanks a lot.
 
 
Reply all
Reply to author
Forward
0 new messages