Re: [AOLSERVER] chinese characters and oracle driver

2011-07-18 Thread Brad Chick
I don't think it's tcl at this point. I can see that aolserver/tcl can bring 
in the unicode characters and return them to the client 'as is'.

And you can see what encoding system tcl is using via this command as well:

[encoding system]

which shows that tcl is using UTF-8, which is what is desired.

As well, I have another stack that has the same architecture, with the 
exception of the db/driver:

aolserver 4.51/tcl 8.5/mysql/nsmsql 

and that works right out of the box. I can pass in any unicode characters 
(e.g. Braille, Farsi, Gaelic, etc.) and everything works. The strings are 
put in mysql and pulled out perfectly.

In the oracle case, it's simple to see that it's not the db: with sqlplus, I 
can insert/select into/from oracle and everything looks fine.

So, it seems like all that is left is the oracle driver.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] chinese characters and oracle driver

2011-07-18 Thread Brad Chick
I just grabbed the latest oracle driver from cvs and you are right: there is 
no explicit support for either NCHAR or NVARCHAR2 - which oracle requires to 
store unicode characters.

So, I will try to update the driver and report back.

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] chinese characters and oracle driver

2011-07-18 Thread Brad Chick
Well, I reached an impasse. I grabbed the latest source from CVS, added 
support for the 2 datatypes (NCHAR, NVARCHAR2), and recompiled. Then, I 
turned on debugging for the driver.

The logs look great. The driver constructs the queries appropriately:

e.g. [18/Jul/2011:14:17:30][10744.1099659584][-default:1-] Notice: 
nsoracle.c:3169:Ns_OracleExec: entry (dbh 0xd8392b0, sql insert into 
test_zhs (foo, bar) values (N'男孩儿 儿男孩 Yo', N'男孩儿 儿男孩 
Yo'))

But the data somehow gets mangled in oracle. And that same insert statement 
works perfectly well in sqlplus:

insert into test_zhs (foo, bar) values (N'男孩儿 儿男孩 Yo', N'男孩儿 
儿男孩 
Yo');
(and i've tried it a million ways (e.g. without the leading 'N'')).

When viewed from sqplus, the sqplus added data looks fine, while the stuff 
that comes in through the driver is mangled.

Dunno.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] chinese characters and oracle driver

2011-07-15 Thread Brad Chick
I am having trouble getting Chinese characters in/out of oracle with 
AOLserver. Here is my stack:

Oracle 11g
TCL 8.5
AOLserver 4.51
Oracle Driver version 2.7

The existing database has a database character set of WE8ISO8859P1.
But we are using NCHAR and NVARCHAR2 datatypes to store Unicode characters. 
The 
NLS_NCHAR_CHARACTERSET is properly set to AL16UTF16.

I am setting the following in the environment as an nsd wrapper:

export NLS_LANG=_.UTF8

I can login to sqlplus and insert and select chinese characters:

insert into test_zhs (foo) values (N'男孩儿男孩儿');

SQL select * from test_zhs;

FOO


男孩儿男孩儿

I also am sure that aolserver/tcl are treating the characters appropriately.
For example, this form takes whatever characters are inputed into the form, 
tries to insert them, and spits them back out. 
When chinese characters are inputed, that is how the server returns them.
http://jp.xacte.com:8181/test/db/myform.tcl

On the other hand, no matter what I try, I can't get aolserver to get them 
into oracle properly. I suspect it's the oracle
driver, but people have suggested that it is possible to put unicode 
characters into oracle using that driver.

Any help would be way helpful.

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how to parse Content-Type text/xml form post

2010-04-07 Thread Brad Chick

Thanks. That was simple enough.

Just a ns_conn content and then tdom.

It just wasn't easy to find much info on this.

On 4/7/2010 4:31 AM, Gustaf Neumann wrote:

Is there something wrong with ns_conn content ?

Am 07.04.10 09:03, schrieb Bas Scheffers:

I think the question is *how* to grab the raw post data?

On Wednesday, April 7, 2010 4:12pm, Gustaf
Neumannneum...@wu-wien.ac.at said:

Grab the post data and use an xml parser to get the content
There are multiple xml parsers for tcl available that you can use.
I would recommend tdom, which supports among other
things xpath (see http://www.tdom.org/)

-gustaf neumann

Am 07.04.10 06:40, schrieb Brad Chick:

This should be fairly simple, but I having issues parsing a form
post that is
of Content-Type text/xml.

The methods I see to handle the form data all try to parse the body
into
key/value pairs.

This is not what I need.

Rather, I just need the xml payload.

any help would be appreciated.

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email
tolists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject:
field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field
of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email
tolists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] installation problems with 4.5.1 on centos 5.4 64-bit

2010-02-07 Thread Brad Chick
i keep getting:

ranlib: '/usr/local/aolserver/lib/libnsthread.a': No such file
gmake[1]: *** [install-dll] Error 1
gmake[1]: Leaving directory `/home/brad/aolserver-4.5.1/nsthread'
gmake: *** [install-bins] Error 1

I have tried with both tcl 8.4 and 8.5, but keep getting that same error.

I made sure I used enable-threads and had the install location right:

./configure --prefix=/usr/local/aolserver --with-tcl=/usr/local/lib/ --enable-
threads

I also ran

make clean on reintsalls.

Any help would be great.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] trouble installing nsmysql

2007-12-20 Thread Brad Chick

All,

I'm not sure if the nsmysql
is still functional or being used by anyone. But I'm trying to compile

on
Linux version 2.6.11-1.1369_FC4smp (gcc version 4.0.0 20050525 (Red Hat 
4.0.0-9))

with aolserver 4.0.10

and am getting the following error:


ld: unrecognized option '-Wl,-rpath,/usr/local/aolserver/lib'
make: *** [nsmysql.so] Error 1

We see this thread,
http://www.webservertalk.com/archive388-2007-7-1938152.html
where Dossy says to

Try changing that to:

-Wl,-rpath -Wl,/usr/local/aolserver/lib

but don't know exactly where that needs to be changed.

We tried making the change in

/usr/local/aolserver/include/Makefile.global

But that didn't work. Any help would be appreciated.
--
==
BRAD CHICK
==
Manager of My Own Thoughts, Mostly
Active Sports Technologies

The Active Network, Inc.
10182 Telesis Court, Suite 300
San Diego, CA 92121
(858) 964-3983 office
(858) 677-9780 fax
[EMAIL PROTECTED]
www.active.com
===


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] only one connection thread

2006-10-24 Thread Brad Chick
On Mon, 23 Oct 2006 11:06:45 -0400, Nathan Folkman [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:
 Following up on Stuart's call for clarification, can someone please send
 some out some documentation, or point us to it, where we can figure out 
how
 to use the new ns_limits/ns_pools functionality in 4.5.

 We just used 4.5 in production and aolserver was limited to 100 
ESTABLISHED
 tcp connections, no matter what we tried. We tried to change the old
 settings, changing the keepalivetimeout to 0 and messing with:

 ns_param   connsperthread
 ns_param   maxconnections
 ns_param   maxthreads

 but not matter what we had in our configuration, nothing helped us get 
any
 more simultaneous tcp connections.

 Any help would be greatly appreciated.

 Or, maybe we should just go back to 4.0.10?

 Brad


 On Thu, 10 Aug 2006 20:59:46 +0100, Stuart Children 
[EMAIL PROTECTED]
 wrote:


 Stuart Children wrote:

 Whilst playing with a new 4.5.0 build, I suddenly noticed that I was
 only getting one concurrent connection thread running - eek!

 OK, so this is an affect of the new limits code. It's more specific than
 I initially described - it's one concurrent connection per specific
 url, where I believe url actually means url+at least some headers
 (which is slightly surprising, though I can see people having a
 requirement for it both ways). Due to the lack of response, I've no idea
 whether this is the intentional default behaviour - but it would seem to
 merit a mention in the docs if so.

 Unfortunately I'm about to leave for an extended holiday, and I've been
 pretty busy with other matters in my last few days at work, so
 investigating further how the new limits/pools stuff is actually working
 (and how one is intended to use it) will have to wait. If anyone can
 fill in the gaps whilst I'm away that would be great, but I just wanted
 to let people know I probably won't be replying for three weeks...
 holiday = no computers. :)

 Cheers

 --
 Stuart


 --
 AOLserver - http://www.aolserver.com/

 To Remove yourself from this list, simply send an email to

 [EMAIL PROTECTED] with the

 body of SIGNOFF AOLSERVER in the email message. You can leave the

 Subject: field of your email blank.

 
=



 --
 AOLserver - http://www.aolserver.com/

 To Remove yourself from this list, simply send an email to 
[EMAIL PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can leave the 
Subject: field of your email blank.

Any overview of the new commands can be found in the release notes:


http://aolserver.cvs.sourceforge.net/aolserver/aolserver/
RELEASE?view=markup

Your best bet is to just look at the source:

aolserver/nsd/limits.c
aolserver/nsd/pools.c

Here's also a few additional notes I had been working on, although
probably not that helpful:


  Ns pools


   From Office Wiki

Thread pools can be configured in either application code or the
AOLserver configuration. The following example will set up a thread pool
for all GET requests to /slow/* allowing only a maximum of 2 connection
threads to be allocated. Additional requests will be queued.

ns_pools set slow -maxthreads 2
ns_pools register slow server1 GET /slow/

There are a few stats commands available as well:

server1:nscp 1 ns_server threads slow
{min 0} {max 2} {current 2} {idle 0} {stopping 0}

server1:nscp 2 ns_pools list
slow default error

server1:nscp 3 ns_pools get slow



  Ns limits


   From Office Wiki

In addition to creating and registering thread pools, you can also
specify the following limits:

maxrun maxwait maxupload timeout

minthreads 0 maxthreads 2 idle 0 current 2 maxconns 2 queued 8 timeout 5



Well,

We've playing with settings like:

ns_limits set default -maxrun 999
ns_limits set default -maxwait 999
ns_pools set default -maxthreads 999
ns_pools set default -maxconns 999

ns_pools set lots -maxthreads 998
ns_pools register lots server1 GET /lasalle/

But not matter what we do, we can never get aolserver to accept more that 
100 tcp connections at once. The rest are just queued to WAIT.

We are stressing the server with a load tester and then taking a look at 
the ESTABLISHED connections.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the 
Subject: field of your email blank.
=


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] only one connection thread

2006-10-23 Thread Brad Chick
Following up on Stuart's call for clarification, can someone please send 
some out some documentation, or point us to it, where we can figure out how 
to use the new ns_limits/ns_pools functionality in 4.5.

We just used 4.5 in production and aolserver was limited to 100 ESTABLISHED 
tcp connections, no matter what we tried. We tried to change the old 
settings, changing the keepalivetimeout to 0 and messing with:

ns_param   connsperthread   
ns_param   maxconnections   
ns_param   maxthreads

but not matter what we had in our configuration, nothing helped us get any 
more simultaneous tcp connections.

Any help would be greatly appreciated.

Or, maybe we should just go back to 4.0.10?

Brad


On Thu, 10 Aug 2006 20:59:46 +0100, Stuart Children [EMAIL PROTECTED] 
wrote:

Stuart Children wrote:
 Whilst playing with a new 4.5.0 build, I suddenly noticed that I was
 only getting one concurrent connection thread running - eek!

OK, so this is an affect of the new limits code. It's more specific than
I initially described - it's one concurrent connection per specific
url, where I believe url actually means url+at least some headers
(which is slightly surprising, though I can see people having a
requirement for it both ways). Due to the lack of response, I've no idea
whether this is the intentional default behaviour - but it would seem to
merit a mention in the docs if so.

Unfortunately I'm about to leave for an extended holiday, and I've been
pretty busy with other matters in my last few days at work, so
investigating further how the new limits/pools stuff is actually working
(and how one is intended to use it) will have to wait. If anyone can
fill in the gaps whilst I'm away that would be great, but I just wanted
to let people know I probably won't be replying for three weeks...
holiday = no computers. :)

Cheers

--
Stuart


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the 
Subject: field of your email blank.
=


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] cant use nsencrypt

2004-12-22 Thread Brad Chick
On Tue, 21 Dec 2004 23:47:22 -0500, Dossy Shiobara [EMAIL PROTECTED]
wrote:

On 2004.12.21, Brad Chick [EMAIL PROTECTED] wrote:
 I'm having the exact same problem as posted below. I couldn't find any
 responses. Does anyone know the solution.

 aolserver: 4.0.9
 openssl: OpenSSL 0.9.6c 21 dec 2001
 nsencrypt: 0.3

[...]

[12/Jan/2004:13:06:34][13990.1074087520][-main-] Warning: modload:
failed to load '/usr/local/aolserver/bin/nsencrypt.so':
'/usr/local/aolserver/bin/nsencrypt.so: undefined symbol:
RAND_load_file'

Hmm, on my system:

$ objdump -T /usr/lib/libcrypto.so.0.9.7 | grep RAND_load_file
00086c10 gDF .text  01d7  BaseRAND_load_file

This is ...

$ openssl version
OpenSSL 0.9.7e 25 Oct 2004

I don't know when the RAND_load_file function was introduced in OpenSSL,
but you might want to try a newer version than 0.9.6c, for sure.

-- Dossy


Dossy,

Thanks much. I updated openssl (using the debian's stable version, which was
the same) and recompiled, but had no luck.

And the RAND_load_file is part of 0.9.6:

objdump -T /usr/lib/libcrypto.so.0.9.6 | grep RAND_load_file
0005a530 gDF .text  0128  BaseRAND_load_file

So I'm still stuck.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] cant use nsencrypt

2004-12-21 Thread Brad Chick
I'm having the exact same problem as posted below. I couldn't find any
responses. Does anyone know the solution.

aolserver: 4.0.9
openssl: OpenSSL 0.9.6c 21 dec 2001
nsencrypt: 0.3

Thanks

On Mon, 12 Jan 2004 06:38:19 -0500, Yuval lib [EMAIL PROTECTED]
wrote:

I'm trying to use nsencrypt:
I had no problems compiling it,
but when trying to restart the server I get in the log:

[12/Jan/2004:13:06:34][13990.1074087520][-main-] Notice: modload:
loading '/usr/local/aolserver/bin/nsencrypt.so'
[12/Jan/2004:13:06:34][13990.1074087520][-main-] Warning: modload: failed
to
load '/usr/local/aolserver/bin/nsencrypt.so': '/usr/local/aolserver/bin/
nsen
crypt.so: undefined symbol: RAND_load_file'
[12/Jan/2004:13:06:34][13990.1074087520][-main-] Fatal: modload: failed to
load module '/usr/local/aolserver/bin/nsencrypt.so'


I'm using: AOLserver/3.3.1+ad13
and openssl-0.9.7a-2
on Red-Hat 9 Linux


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] cant use nsencrypt

2004-12-21 Thread Brad Chick
That's not it. That's exactly what's in the Makefile:

#
# Extra libraries
#
MODLIBS  = -lssl -lcrypto


On Tue, 21 Dec 2004 16:39:11 -0700, Daniel P. Stasinski [EMAIL PROTECTED]
ORG wrote:

On Tue, 2004-12-21 at 18:12 -0500, Brad Chick wrote:
 I'm having the exact same problem as posted below. I couldn't find any
 responses. Does anyone know the solution.

I seem to recall an error in the Makefile

#
# Extra libraries
#
MODLIBS  = -lssl -lcrypto

I think the Makefile in the tarball doesnt mention -lssl

Daniel

--
| ---
| Daniel P. Stasinski | http://www.saidsimple.com
| [EMAIL PROTECTED]| http://www.disabilities-r-us.com
| --- | http://www.scriptkitties.com
| Jabber: [EMAIL PROTECTED] | http://oneweek.org


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] tuning aolserver and nsv arrays

2004-10-20 Thread Brad Chick
We are using the nsv arrays of aolserver to handle a large load of queries.
The application can be seen at

http://results.doitsports.com/lasalle/2004/

With that application, we handled 1.7 million queries in a day (using 5
servers).

We put 21MB worth of data into 39 arrays.

Under a lot of load, the nsd process swells (just soaks up all available RAM
(which is 2G on each box)) and hangs. There is no thrashing going on; the
SIZE is just barely bigger than the RSS under top.

We are using aolserver 4.0 on Linux version 2.4.25-grsec and having a hard
time figuring out what the ideal configuration would be.

We have tried adjusting the folllowing paramters:
nsvbuckets (we've tried 8, 16, 32, 64)
maxthreads (currently 20)

We have not tried adjusting:
stacksize

Does anyone have any idea what the ideal config would be for this app? What
should we set nsvbuckets to? Maxthreads?

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


[AOLSERVER] order nsv arrays

2004-03-03 Thread Brad Chick
I'm keeping a lot of data in nsv arrays and need to order them on occasion.
Can this be done? If not, what would be an easy way to do it?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] bind / privileged port

2003-12-02 Thread Brad Chick
On Tue, 2 Dec 2003 13:41:04 -, Bas Scheffers [EMAIL PROTECTED] wrote:

I'll vouch for the non-restarting unless the -b flag is provided. That
behavior has been consistent since the move to 4.

Relatedly, it is difficult to restart aolserver, because aolserver seems to
hang on to port 80.

We have aolserver in the inittab with

/usr/local/aolserver4/bin/nsd -it /usr/local/aolserver4/nsd.tcl -u nsadmin
-b 209.133.111.72:80

But when it hangs (which is often), we can't just kill all the processes,
because when we do, we always get:

[02/Dec/2003:15:28:22][21164.1024][-main-] Error: nssock: failed to listen
on 209.133.111.72:80: Permission denied

when inittab tries to bring it up again.

So, we have to kill the processes twice. And you have to wait a couple of
seconds before you kill them again, or it will have the same nssock error.

Thanks

Artur Meski said:
 I would like to know if it's possible to set httpport in the
 configuration file or I have to specify it on the command line (if it's
 privileged port).
Well, it should be possible. And it was possible in 3.5.6, which I was
using before last week. I wasn't running on a privileged port on 4.0, so I
didn't notice this bug, which I now think it is.

To recap:
starting the server as root on a port 1024 defined in nsd.tcl, switching
to an unprivileged user nsd with -u:
[02/Dec/2003:13:24:44][26609.3209707648][-main-] Error: nssock: failed to
listen on 127.0.0.1:81: Permission denied

Starting as root with the same command line, but adding -b 127.0.0.1:81,
server starts fine.

Starting the server on a port 1024 defined in the config file works fine
as well.

Another bug(?): when I send the server a normal kill (TERM), it comes so
far as:
[02/Dec/2003:13:35:48][26689.3209711744][-main-] Notice: nsmain:
AOLserver/4.0 stopping
[02/Dec/2003:13:35:48][26689.3209711744][-main-] Notice: serv: stopping
server: server1
[02/Dec/2003:13:35:48][26689.3209711744][-main-] Notice: serv: connection
threads stopped
[02/Dec/2003:13:35:48][26689.3209711744][-main-] Notice: driver: shutdown
complete

But doesn't actualy exit. I need to send it another TERM to make it exit.

This is all running on Linux wombat 2.4.22-1.2088.nptl #1 Thu Oct 9
20:39:56 EDT 2003 i686 athlon i386 GNU/Linux which is the Fedora final
beta distribution. (Severn)

Bas.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] aolserver 4 continually respawning

2003-12-01 Thread Brad Chick
I'm still having memory issues with AOLserver 4. I have stopped the
indefinite respawning of aolserver processes, but as soon as aolserver is
started, it just keeps growing and growing in size.

When it gets to have a size around 600M (with the RSS about 534M), it just
hangs, or it will give something like the following error in the server log:

unable to alloc 2849420 bytes
unable to alloc 2017794 bytes
unable to alloc 3869015 bytes
unable to alloc 7441 bytes

It take about 20 hours or so to run out of memory and hang.

We're running an oracle-backed system using the oracle driver. Maybe that
has something to do with it.

Any help would be appreciated.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] aolserver 4 continually respawning

2003-12-01 Thread Brad Chick
On Mon, 1 Dec 2003 09:18:00 -0500, Greg McGuire [EMAIL PROTECTED] wrote:

What version of Oracle are you running?  Versions  9.2.0.3 have leaks in
the OCI driver, which can cause the problem you're seeing.  What is running
under AOLServer (in terms of tcl libs and such)?  Are you using the stock
Oracle db driver off of aolserver.com?

You are right. We are using oracle 8i. And we are using the most recent
oracle driver from aolserver cvs. The tcl libs are coming straight from the
most recent tcl distribution (8.4) from tcl.tk.

But we never had this problem with aolserver versions 3.x.


Regards,
Greg

 -Original Message-
 From: AOLserver Discussion
 [mailto:[EMAIL PROTECTED] Behalf
 Of Brad Chick
 Sent: Monday, December 01, 2003 9:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [AOLSERVER] aolserver 4 continually respawning


 I'm still having memory issues with AOLserver 4. I have stopped the
 indefinite respawning of aolserver processes, but as soon as
 aolserver is
 started, it just keeps growing and growing in size.

 When it gets to have a size around 600M (with the RSS about
 534M), it just
 hangs, or it will give something like the following error in
 the server log:

 unable to alloc 2849420 bytes
 unable to alloc 2017794 bytes
 unable to alloc 3869015 bytes
 unable to alloc 7441 bytes

 It take about 20 hours or so to run out of memory and hang.

 We're running an oracle-backed system using the oracle
 driver. Maybe that
 has something to do with it.

 Any help would be appreciated.


 --
 AOLserver - http://www.aolserver.com/

 To Remove yourself from this list, simply send an email to
 [EMAIL PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can
 leave the Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] aolserver 4 continually respawning

2003-11-24 Thread Brad Chick
On Mon, 24 Nov 2003 10:30:32 -0500, Dave Aitel [EMAIL PROTECTED] wrote:

It's not an unknown reason, it's a remote root which you guys already
fixed in 3.4...add the Content-Length check to 4.0 and you should be set.

Is this something I can do myself? I would happily do so if possible?
AOLserver is now halting every 30 minutes or so.

Brad


-dave


Zoran Vasiljevic wrote:

On Monday 24 November 2003 16:20, you wrote:


We are running aolserver 4GM on debian and are having trouble keeping it
alive. The problem seems to be that somehow, aolserver continually
respawns
until there are ~100 or more processes running (identified by a ps). At
that point, aolserver either just hangs, with nothing notable in the log
file, or sometimes it will stop with an error message like:

unable to alloc 2849420 bytes




The things cores always. The hang is really not a hang.
It just looks so. We've already seen reports in which,
due to some memory/system shortage (or yet unknown reason)
the beast simply dies.
I could point you to look at the top and observe the amount
of memory available (core + swap) in the moment it dies,
but we've done that already and it brought us nowhere :(

It is a difficult issue...

Zoran


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.




--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-16 Thread Brad Chick
This is definitely a bug with 3.5.6. The exact same code uploads files
perfectly well on 4.0b10.

I would like to test 3.5.10. Can someone tell me how to get 3.5.10 please?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


[AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread brad chick
Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file uploads
broke. Now, aolserver doesn't upload pc files properly. These files have
what seems be browser crud appended to them:

-7d32da2b27043a Content-Disposition: form-data;
name=x  20
-7d32da2b27043a   Content-Disposition: form-
data; name=y 11 -7d32da2b27043a--

On the other hand, unix files don't have this issue when uploaded through a
browser to aolserver.

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread brad chick
Sorry about that original paste of the garbage at the end of the files. I
messed up the returns. Here's a better (unadultered) example:

-7d37523500ba
Content-Disposition: form-data; name=x
18
-7d37523500ba
Content-Disposition: form-data; name=y
12
-7d37523500ba--


Here's a snippet of some code:

set tmp_filename [ns_queryget upload_file.tmpfile]
# testing
set tempfile [ns_info pageroot]/confirm/tmp/temp_upload.csv

ns_cp $tmp_filename $tempfile


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


[AOLSERVER] aolserver 3.5.10

2003-09-30 Thread Brad Chick
I've seen references to aolserver 3.5.10, but can only seem to find 3.5.6.
What are the key differences and how does one obtain the newer version?
Thanks

--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.