AppWeb Forum

Support for the AppWeb HTTP Server
It is currently Thu Sep 09, 2010 4:53 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: the size of appweb(3.2.2) with ejs, it is too big!
PostPosted: Thu Jul 29, 2010 7:41 am 
Offline

Joined: Tue May 11, 2010 2:36 am
Posts: 9
I configure it :./configure --prefix=/usr/local --host=mips64-octeon-linux --type=release --webDir=/var/www --nu mber=int --port=80 --shared --without-sqlite --disable-db --disable-rom --disable-cgi --disabl e-dir --disable-egi --disable-xml --disable-chunk --disable-http-client

and the file tree I used in my project
.
|-- etc
| |-- appweb
| | |-- appweb.conf
| | |-- conf
| | | |-- doc.conf
| | | |-- log.conf
| | | |-- modules
| | | | |-- cgi.conf
| | | | |-- dir.conf
| | | | |-- egi.conf
| | | | |-- ejs.conf
| | | | |-- fcgi.conf
| | | | |-- php.conf
| | | | `-- upload.conf
| | | `-- tune.conf
| | `-- mime.types
| `-- init.d
|
`-- usr
`-- local
`-- lib
`-- appweb
|-- bin
| |-- ajs
| |-- ajsc
| |-- angel
| `-- appweb
|-- lib
| |-- libac.so
| |-- libajs.so
| |-- libappweb.so
| |-- libmpr.so
| `-- libpcre.so
`-- modules
|-- ajs.mod
|-- ajsweb.mod
|-- mod_ejs.so
|-- mod_file.so
`-- mod_upload.so

-rwxrwxrwx 1 root root 291K 07-26 15:33 libac.so
-rwxrwxrwx 1 root root 505K 07-26 15:33 libajs.so
-rwxrwxrwx 1 root root 147K 07-26 15:33 libappweb.so
-rwxrwxrwx 1 root root 295K 07-26 15:33 libmpr.so
-rwxrwxrwx 1 root root 133K 07-26 15:33 libpcre.so

I find it's too big, not small


Top
 Profile  
 
 Post subject: Re: the size of appweb(3.2.2) with ejs, it is too big!
PostPosted: Fri Jul 30, 2010 1:51 am 
Offline
Site Admin

Joined: Wed Nov 19, 2003 11:42 pm
Posts: 1107
Location: Seattle, Washington
First a question, are you building 64 bit? That is about 30% or more bigger than 32 bit systems.
Next, when you run, you don't need to use libac if you precompile.

As a guide, bare appweb on a 32bit linux arm system is about 400-600K. With SSL, add 200-300K.
Ejscript adds about 500K. PHP will add 2-3MB.

If you need really small, use bare appweb and custom C handlers. Appweb 4 will have a cool C language MVC and templating system that will not increase footprint. ie. it will be < 1MB all up.

Next step up is to use Ejscript. This will use 1 to 1.5 MB.

Next step after that is to use PHP which typically uses 3-6MB.

These number are all up running memory footprints including code, data and heap.

Michael

_________________
Michael O'Brien
Lead Architect
Embedthis Software


Top
 Profile  
 
 Post subject: Re: the size of appweb(3.2.2) with ejs, it is too big!
PostPosted: Thu Aug 12, 2010 3:12 am 
Offline

Joined: Tue May 11, 2010 2:36 am
Posts: 9
Thank you very much, I build appweb on 64bit system.and it is a little big more than 32 bit system. and I find it is not work very well by the defalut configure,when I call the function ejsCreateNumber(), it return a wrong value,although it could work on 32 bit system. I think the source is limited on 64 bit system by defalut configure.so you must configure --tune=BALANCED to set more source.


Top
 Profile  
 
 Post subject: Re: the size of appweb(3.2.2) with ejs, it is too big!
PostPosted: Fri Aug 13, 2010 3:53 pm 
Offline

Joined: Wed Nov 19, 2003 11:55 pm
Posts: 481
ejsCreateNumber seems to work on all our build farm test systems.

See http://farm.embedthis.com:4000/Dash/?pr ... e-standard

Of these, there are 3 64 bit systems under test. What is not working for you with CreateNumber? Did u deselect floating point? Ejscript really requires floating point to operate correctly.

Peter

_________________
Peter Hale
Gridable Systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.147s | 11 Queries | GZIP : Off ]