English 中文(简体)
How do I disable debug checks in yaws?
原标题:
  • 时间:2010-01-08 14:32:09
  •  标签:
  • erlang
  • yaws

When i start yaws (yaws -i --conf config/yaws.conf) i get this line in the output:

Running with debug checks turned on (slower server)

It depends on the "-i" option? Or where did i turned on debug checks? No mention of debug in the config file...

thx edoardo

问题回答

In recent versions of yaws (1.85 and later) you can simply pass the --nodebug option on the command line:

yaws -i --nodebug

This will be because your flags setting in the global config has the debug bit (2) set. If GC_DEBUG is set in the global configuration this feature will be enabled.

These are the flags:

-define(GC_TTY_TRACE,                        1).
-define(GC_DEBUG,                            2).
-define(GC_AUTH_LOG,                         4).
-define(GC_COPY_ERRLOG,                      8).
-define(GC_BACKWARDS_COMPAT_PARSE,          16).
-define(GC_LOG_RESOLVE_HOSTNAME,            32).
-define(GC_FAIL_ON_BIND_ERR,                64).
-define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 128).
-define(GC_USE_FDSRV,                      256).
-define(GC_USE_OLD_SSL,                    512).

I think that in the yaws.config file this is actually un-set by setting the debug = false flag in the global part.

Updated - the debug parameter is part of the env settings of the app in the yaws.app file, so adding something like

-yaws debug false

to the real command line should work

After using command: "sudo yaws -i --nodebug", my website become a bit faster.





相关问题
Comparison among NIO webservers [closed]

We need to put in our architecture a server for streaming contents to (potentially) millions of phones. Here the architects and operations people know only about Java, but I d really to propose ...

yaws and erlang beam files in ebin

I am having problems when i have integers and float numbers in my form posts and receive these in my ebin file where i have beam files. Hope someone can help me. npower.yaws <erl> kv(K,L) -...

How to set up yaws-1.89 in ubuntu?

I need help with setting up yaws-1.89 in ubuntu. This is the error I get: =INFO REPORT==== 3-Dec-2010::16:52:40 === Yaws: Using config file /home/hudson2010/yaws.conf =ERROR REPORT==== 3-Dec-2010::...

Yaws and PUT requests

I just started working with Yaws to try to create some simple RESTful web services, however I ran into an unexpected issue: I can t seem to access my data when I do a PUT request. When I try to use ...

Erlang s maximum number of simultaneous open ports?

Does the erlang TCP/IP library have some limitations? I ve done some searching but can t find any definitive answers. I have set the ERL_MAX_PORTS environment variable to 12000 and configured Yaws to ...

How do I disable debug checks in yaws?

When i start yaws (yaws -i --conf config/yaws.conf) i get this line in the output: Running with debug checks turned on (slower server) It depends on the "-i" option? Or where did i turned on debug ...

Mochiweb : Reading a file as it is uploaded

I want to be able to read a file just as it is being uploaded by the user, i.e. I want to read the incoming stream of bytes from the user s browser.. Is that possible with Mochiweb? If not, where do I ...

热门标签