Questions tagged [g-wan]

G-WAN is a web server with scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby and Scala.

G-WAN is a (freeware) web application server first published in 2009. The gwan.com site presents the G-WAN API, answers FAQs and also publishes many benchmarks in various programming languages.

G-WAN supports scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby, and Scala (click on a language link to show a benchmark).

An old performance comparison with static servers was done by an academic: http://nbonvin.wordpress.com/2011/03/24/serving-small-static-files-which-server-to-use/

A more recent benchmark (on 1/2/4/8 CPU Cores) - also made by an independent third-party - compares Apache 2.2, Apache 2.4, Nginx, Lighttpd, Varnish, Litespeed, Cherokee and G-WAN: http://www.rootusers.com/web-server-performance-benchmark/

274 questions
0
votes
3 answers

how to disable micro caching in G-WAN with a static URI shared to users

I use G-WAN to develop a website and I would like to count how much a page with a static URI has been called in order to display some statistics, but with the automatic caching system of G-WAN my counter is wrong sometimes. Is there a way to…
user1606908
  • 89
  • 1
  • 5
0
votes
1 answer

Gwan kv, persistent flag / Number of items

I have decided to use Gwan's KV store in place of a Redis NoSQL database. I saw in the Manual that the kv supports a persistent flag for file IO to keep data I guess between restarts. It uses the callback recfn, but how exactly would this function…
John-Alan
  • 171
  • 7
0
votes
1 answer

Access KV store and Environment Variables in G-WAN using MONO

I got mono 3.0.6 working with G-WAN and now I am trying to use G-WAN persistent pointers and KV Store using mono but don't know how to do it. G-WAN does expose some functions on gwan_api.cs but the KV function and get_env is not there. Is it…
Richard Heath
  • 349
  • 3
  • 12
0
votes
1 answer

Gwan include scripts

I am currently trying to import some libraries into my Gwan C script. I have read through the manual and am using #pragma include to include the folder that my libraries are in, and then use #pragma link to actually include the libraries, but when I…
John-Alan
  • 171
  • 7
0
votes
1 answer

G-WAN PHP servlet blocking with empty reply

I send small payloads of various sizes as "200" replies but once in a while the payload is empty (no HTML body) and G-WAN takes a long time to answer those requests. Can you tell me what's happening and how to resolve this? Thanks.
Eli
  • 106
  • 7
0
votes
1 answer

Response Time of sleeping gwan server script

I want to figure out how gwan responds if a script takes longer than 1 second to finish. To do so, I used the sleep() function in the hello.c example: #include "gwan.h" #include int main(int argc, char **argv) { sleep(5); …
csw
  • 125
  • 6
0
votes
1 answer

/csp default directory in G-WAN

i'm looking for the best way (fastest) so that my domain.com points directly at my /csp directory. What instruction in a main.c file, present in the headlers directory I guess, would you advise ?
John S
  • 231
  • 3
  • 11
0
votes
1 answer

gwan reverse proxy

I am searching to configure gwan to act as reverse-proxy cache to my web python application. I could'nt find some example on the web. Thanks a lot for your examples Laurent
0
votes
2 answers

GWAN: upload file bad request

I try to do a simple upload form. I'm using jQuery upload (https://github.com/blueimp/jQuery-File-Upload/archive/master.zip) with a simple form (http://pastebin.com/wCUB2EkR) (data-url="server/php/?index.php") I put index.html and .js into my "www"…
0
votes
1 answer

GWAN not recognizing Java

I followed the FAQ, but I'm running Ubuntu 10 server so J6 is the best I can get. When I start gwan 4.2.13 (sudo ./gwan) I get "hello.java: to use .java scripts, install Java" echo $JAVA_HOME /usr/lib/jvm/java-6-openjdk echo…
sday
  • 1,041
  • 14
  • 22
0
votes
2 answers

gwan using $ and # for directory names

Is there a way to change gwan's default behavior of naming your site with the pound character and virtual hosts with the dollar sign. So many of my development tools have consistent problems accessing directories with # and $ in the file name. …
sday
  • 1,041
  • 14
  • 22
0
votes
2 answers

Measure script memory usage in GWAN for each request

how to measure memory usage on gwan application (each request made)? for the memory usage consumed by /csp script and /handlers script.
csw
  • 125
  • 6
0
votes
3 answers

G-WAN MAX_ENTITY_SIZE issue when post is greater than 4KB

Has anyone got this issue with MAX_ENTITY_SIZE? I am fighting with this for quite awhile now. I hope I am just doing something stupid or somebody found a solution for this. I am using G-WAN 4.2.7 on Ubuntu 64bit latest version. Here is a test case.…
Richard Heath
  • 349
  • 3
  • 12
0
votes
1 answer

gwan: vhost with underscore does not work

Who can explain or having the same experience of the following gwan behaviour: whenever the name of a vhost has the underscore character, it can not be reached. gwan will jump to show the root host. I am using ubuntu 12.04 and always keep…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

SIG 11 for G-WAN w/o much debug information

The gwan (4.1.18) instance runs for about one day, and then crashed with this tracing information (Not suer how useful it is:( How to get meaningful tracing information?) ---------------- ---------------- Sun, 27 Jan 2013 20:07:34 GMT: warning: no…
BYZ
  • 21
  • 1