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
1
vote
2 answers

Same pointer address in two different call of connection handler

I am doing rewriting url and testing it with siege and I had one problem. Sometimes, gwan uses the same address for 2 call of main function in handler connection. To make the difference beetween two call, I use an integer with rand(). In the exemple…
1
vote
1 answer

Gwan : Debug option for C

I have a signal 11 after a while with a c script in a connection handlers. I have no memory problem and unit test work well ! I'd like to know if there is a debug mode with gwan for c scripts ? and how to activate it ? Thanks by advance Regards
1
vote
1 answer

How to handle Unicode text with C/C++ servlets/handlers in G-Wan Web Server?

I'm planning to write a web application using C/C++ servlets/handlers for G-Wan web/app server. I would like my application to work with multiple languages including multibyte characters and hence am wondering how i should handle this in G-WAN…
Saasira
  • 739
  • 8
  • 14
1
vote
2 answers

feature request: an atomicAdd() function included in gwan.h

In the G-WAN KV options, KV_INCR_KEY will use the 1st field as the primary key. That means there is a function which increments atomically already built in the G-WAN core to make this primary index work. It would be good to make this function opened…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
1
vote
1 answer

How to run PHP or ruby scripts using g-wan?

I have php5-cli and ruby installed but both don't work ! In the log I have * bug in new /home/olivier/gwan/0.0.0.0_8080/#0.0.0.0/csp/php.php Where php.php is a simple : In gwan.log, I don't see anything about loading…
solisoft
  • 669
  • 4
  • 12
1
vote
2 answers

Voltdb + gwan with c++

I have decided use GWAN like my application server and I wish use voltdb for storage the data. Anybody has employed both together?. I will develop it in C++.
1
vote
3 answers

g-wan updating servlets

I noticed in the g-wan User Manual pdf documentation as of 10/19/2012, http://gwan.ch/download that it says: Updating servlets (C, C++, etc.) When you need to add or update servlets located in the csp directory you can do so without stopping…
sday
  • 1,041
  • 14
  • 22
1
vote
2 answers

G-WAN + Phalanger

OK i have this crazy idea, since php does not play nice with G-WAN, maybe the solution is to use phalanger to compile php code to c# mono assembly and then use it from g-wan? Anyone has any experience with this combination and could help? OR maybe…
Programista
  • 1,037
  • 5
  • 15
  • 38
1
vote
2 answers

Can g-wan web server be configured with https

Can anyone suggest how can g-wan be configured with secure http (https)?
mivi
  • 348
  • 5
  • 8
1
vote
1 answer

g-wan with C# on Ubuntu 12.04

Does anyone have g-wan working with C#/mono on Ubuntu 12.04? (And how did you do it?) I followed the instructions at http://gwan.com/faq#languages. I have most other languages working include Java with the Oracle 7 JRE/JDK. I am running G-WAN 3.3.28…
Quazil
  • 49
  • 5
1
vote
2 answers

running G-WAN on RHEL5?

I would like to try G-WAN but our server runs on RHEL5. I understood G-WAN needs glibc 2.11 (GLIBC_2.6) in G-WAN 3. Is there a version for RHEL5, source code, G-WAN 2 or any other way around this?
Antti Rytsölä
  • 1,485
  • 14
  • 24
1
vote
1 answer

GWAN not recognising Sun Java 7

OS: Ubuntu 12.04 Desktop Java installed: java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode) Running sudo ./gwan gives following error:- Please install OpenJDK…
krone
  • 31
  • 3
1
vote
2 answers

How to get POST request to work with GWAN using JAVA servlets

I'm experimenting with java servlets using GWAN. It's easy to get GET requests to work using the api.Gwan class. My problem is how do I get POST requests to work. import api.Gwan; public class ProccessGETRequest { public static int jmain(long…
Raf
  • 11
  • 2
1
vote
1 answer

G-Wan and default hello handler?

I'm trying out the handlers shipped with g-wan but i cant seem to locate any good documentation on this subject. I have renamed the main_hello.c__ to main_hello.c and restarted g-wan. But how do i se the result of the handler? It seems nothing is…
Yo-L
  • 487
  • 1
  • 4
  • 12
1
vote
1 answer

Managing the caching in G-WAN with KV store

I am currently developing a web app in C using the G-Wan web server and I want to use the KV Store included with G-Wan in order to store the generated web page and a counter on the number of times the page has been displayed. The KV store is a hash…
user1606908
  • 89
  • 1
  • 5