Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-11 Thread Bert Van den Brande

Interesting to see the basic memory footprint of a basic CakePHP page.
Without reference material of course there's way to evaluate this data :)

Glad the problem is sorted out ...


On Thu, Sep 10, 2009 at 1:19 PM, Tokasa  wrote:
>
> I did few more testing :)
> I have put this in my script to see how memory is occupied...
>
> http://us2.php.net/manual/en/function.memory-get-usage.php
> http://us2.php.net/manual/en/function.memory-get-peak-usage.php
>
>
> I have compared 2 use cases:
>
> 1) very very simple script BAKED by cakephpit was index page with
> 4 records in db - no more data displayed!
> 2) and my issue script commented above...this takes much more records
> then I mentioned before (1-2 rec.)...I was not correct sorry for
> confusion.
>
> I first case it eats approx 6.75 MB and in second case it eats at the
> end of script 8.15 MB.
>
> From this I see that cake take at least some 6MB to start :)
>
> I am ok with that,
> thanks...
>
>
> On Sep 10, 12:24 pm, Bert Van den Brande  wrote:
>> Is 8MB much ... all depends on the functionality of the scripts.
>>
>> Personally I almost always need higher limits from the moment you
>> start working with shells/scripts that consume lot's of data.
>>
>> Seeing that you only read 2 records from the database I suspect there
>> is some functionality inside the controller/view that consumes lot's
>> of memory.
>>
>> On Thu, Sep 10, 2009 at 11:58 AM, Tokasa  wrote:
>>
>> > in the element "draw_form_item.ctp" on line 35  I do only request
>> > action to get data and I pass them to  render another element but
>> > the database is almost empty...I am fetching 1-2 records...
>>
>> > is it wrong that I render element from other element? could this
>> > increase the memory??
>>
>> > On Sep 10, 11:55 am, Tokasa  wrote:
>> >> Hi Bert,
>> >> thanks for your reply.
>>
>> >> I have tried to raise memory limit from 8MB to 9MB and it works then
>> >> OK
>>
>> >> Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
>> >> or I have to optimize something??
>> >> I know I can increase it e.g. up to 128MB but I dont know yet what
>> >> hosting company accepts...
>>
>> >> Thanks
>> >> Tomas
>>
>> >> On Sep 9, 12:25 pm, Bert Van den Brande  wrote:
>>
>> >> > I think it also depends on what your own code is doing in
>> >> > "draw_form_item.ctp" on line 35 .
>>
>> >> > Possibly the CakePHP upgrade requires a little bit of extra memory,
>> >> > and your script was already near the limit of 8MB using the previous
>> >> > CakePHP version ?
>>
>> >> > Try raising the memory limit a bit and evaluate the outcome.
>>
>> >> > Friendly greetings,
>> >> > Bert
>>
>> >> > On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com 
>> >> > wrote:
>>
>> >> > > Hi, I have got some little issue and I would appreciate if anybody can
>> >> > > help me out :)
>>
>> >> > > In some specific part PHP (not even cake I guess) gives me strange
>> >> > > error.
>>
>> >> > > 
>> >> > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
>> >> > > allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
>> >> > > forms/draw_form_item.ctp on line 35
>> >> > > 
>>
>> >> > > The thing I do no understand is that it occurs only between upgrade
>> >> > > from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>>
>> >> > > On spring I started developing an application in cake 1.2.4.8004 ->
>> >> > > upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
>> >> > > this problems pops up going to higher version starting the 1.2.4.8284.
>>
>> >> > > I have got two teories... my code was wrong and fortunately it worked
>> >> > > in older versions DUE to some old bug...
>>
>> >> > > OR
>>
>> >> > > developers had changed something significant...
>>
>> >> > > There is something I have found in my debugging times... It may have
>> >> > > something to do with requestAction(...).
>> >> > > I i comment that it works...
>>
>> >> > > Thanks for any Idea!!
>> >> > > I nobody has something I will report that as a bug...
>>
>> >> > > Tomas
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa

I did few more testing :)
I have put this in my script to see how memory is occupied...

http://us2.php.net/manual/en/function.memory-get-usage.php
http://us2.php.net/manual/en/function.memory-get-peak-usage.php


I have compared 2 use cases:

1) very very simple script BAKED by cakephpit was index page with
4 records in db - no more data displayed!
2) and my issue script commented above...this takes much more records
then I mentioned before (1-2 rec.)...I was not correct sorry for
confusion.

I first case it eats approx 6.75 MB and in second case it eats at the
end of script 8.15 MB.

>From this I see that cake take at least some 6MB to start :)

I am ok with that,
thanks...


On Sep 10, 12:24 pm, Bert Van den Brande  wrote:
> Is 8MB much ... all depends on the functionality of the scripts.
>
> Personally I almost always need higher limits from the moment you
> start working with shells/scripts that consume lot's of data.
>
> Seeing that you only read 2 records from the database I suspect there
> is some functionality inside the controller/view that consumes lot's
> of memory.
>
> On Thu, Sep 10, 2009 at 11:58 AM, Tokasa  wrote:
>
> > in the element "draw_form_item.ctp" on line 35  I do only request
> > action to get data and I pass them to  render another element but
> > the database is almost empty...I am fetching 1-2 records...
>
> > is it wrong that I render element from other element? could this
> > increase the memory??
>
> > On Sep 10, 11:55 am, Tokasa  wrote:
> >> Hi Bert,
> >> thanks for your reply.
>
> >> I have tried to raise memory limit from 8MB to 9MB and it works then
> >> OK
>
> >> Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
> >> or I have to optimize something??
> >> I know I can increase it e.g. up to 128MB but I dont know yet what
> >> hosting company accepts...
>
> >> Thanks
> >> Tomas
>
> >> On Sep 9, 12:25 pm, Bert Van den Brande  wrote:
>
> >> > I think it also depends on what your own code is doing in
> >> > "draw_form_item.ctp" on line 35 .
>
> >> > Possibly the CakePHP upgrade requires a little bit of extra memory,
> >> > and your script was already near the limit of 8MB using the previous
> >> > CakePHP version ?
>
> >> > Try raising the memory limit a bit and evaluate the outcome.
>
> >> > Friendly greetings,
> >> > Bert
>
> >> > On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com 
> >> > wrote:
>
> >> > > Hi, I have got some little issue and I would appreciate if anybody can
> >> > > help me out :)
>
> >> > > In some specific part PHP (not even cake I guess) gives me strange
> >> > > error.
>
> >> > > 
> >> > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> >> > > allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
> >> > > forms/draw_form_item.ctp on line 35
> >> > > 
>
> >> > > The thing I do no understand is that it occurs only between upgrade
> >> > > from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>
> >> > > On spring I started developing an application in cake 1.2.4.8004 ->
> >> > > upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
> >> > > this problems pops up going to higher version starting the 1.2.4.8284.
>
> >> > > I have got two teories... my code was wrong and fortunately it worked
> >> > > in older versions DUE to some old bug...
>
> >> > > OR
>
> >> > > developers had changed something significant...
>
> >> > > There is something I have found in my debugging times... It may have
> >> > > something to do with requestAction(...).
> >> > > I i comment that it works...
>
> >> > > Thanks for any Idea!!
> >> > > I nobody has something I will report that as a bug...
>
> >> > > Tomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Bert Van den Brande

Is 8MB much ... all depends on the functionality of the scripts.

Personally I almost always need higher limits from the moment you
start working with shells/scripts that consume lot's of data.

Seeing that you only read 2 records from the database I suspect there
is some functionality inside the controller/view that consumes lot's
of memory.

On Thu, Sep 10, 2009 at 11:58 AM, Tokasa  wrote:
>
> in the element "draw_form_item.ctp" on line 35  I do only request
> action to get data and I pass them to  render another element but
> the database is almost empty...I am fetching 1-2 records...
>
> is it wrong that I render element from other element? could this
> increase the memory??
>
> On Sep 10, 11:55 am, Tokasa  wrote:
>> Hi Bert,
>> thanks for your reply.
>>
>> I have tried to raise memory limit from 8MB to 9MB and it works then
>> OK
>>
>> Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
>> or I have to optimize something??
>> I know I can increase it e.g. up to 128MB but I dont know yet what
>> hosting company accepts...
>>
>> Thanks
>> Tomas
>>
>> On Sep 9, 12:25 pm, Bert Van den Brande  wrote:
>>
>> > I think it also depends on what your own code is doing in
>> > "draw_form_item.ctp" on line 35 .
>>
>> > Possibly the CakePHP upgrade requires a little bit of extra memory,
>> > and your script was already near the limit of 8MB using the previous
>> > CakePHP version ?
>>
>> > Try raising the memory limit a bit and evaluate the outcome.
>>
>> > Friendly greetings,
>> > Bert
>>
>> > On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com 
>> > wrote:
>>
>> > > Hi, I have got some little issue and I would appreciate if anybody can
>> > > help me out :)
>>
>> > > In some specific part PHP (not even cake I guess) gives me strange
>> > > error.
>>
>> > > 
>> > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
>> > > allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
>> > > forms/draw_form_item.ctp on line 35
>> > > 
>>
>> > > The thing I do no understand is that it occurs only between upgrade
>> > > from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>>
>> > > On spring I started developing an application in cake 1.2.4.8004 ->
>> > > upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
>> > > this problems pops up going to higher version starting the 1.2.4.8284.
>>
>> > > I have got two teories... my code was wrong and fortunately it worked
>> > > in older versions DUE to some old bug...
>>
>> > > OR
>>
>> > > developers had changed something significant...
>>
>> > > There is something I have found in my debugging times... It may have
>> > > something to do with requestAction(...).
>> > > I i comment that it works...
>>
>> > > Thanks for any Idea!!
>> > > I nobody has something I will report that as a bug...
>>
>> > > Tomas
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa

in the element "draw_form_item.ctp" on line 35  I do only request
action to get data and I pass them to  render another element but
the database is almost empty...I am fetching 1-2 records...

is it wrong that I render element from other element? could this
increase the memory??

On Sep 10, 11:55 am, Tokasa  wrote:
> Hi Bert,
> thanks for your reply.
>
> I have tried to raise memory limit from 8MB to 9MB and it works then
> OK
>
> Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
> or I have to optimize something??
> I know I can increase it e.g. up to 128MB but I dont know yet what
> hosting company accepts...
>
> Thanks
> Tomas
>
> On Sep 9, 12:25 pm, Bert Van den Brande  wrote:
>
> > I think it also depends on what your own code is doing in
> > "draw_form_item.ctp" on line 35 .
>
> > Possibly the CakePHP upgrade requires a little bit of extra memory,
> > and your script was already near the limit of 8MB using the previous
> > CakePHP version ?
>
> > Try raising the memory limit a bit and evaluate the outcome.
>
> > Friendly greetings,
> > Bert
>
> > On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com wrote:
>
> > > Hi, I have got some little issue and I would appreciate if anybody can
> > > help me out :)
>
> > > In some specific part PHP (not even cake I guess) gives me strange
> > > error.
>
> > > 
> > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> > > allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
> > > forms/draw_form_item.ctp on line 35
> > > 
>
> > > The thing I do no understand is that it occurs only between upgrade
> > > from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>
> > > On spring I started developing an application in cake 1.2.4.8004 ->
> > > upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
> > > this problems pops up going to higher version starting the 1.2.4.8284.
>
> > > I have got two teories... my code was wrong and fortunately it worked
> > > in older versions DUE to some old bug...
>
> > > OR
>
> > > developers had changed something significant...
>
> > > There is something I have found in my debugging times... It may have
> > > something to do with requestAction(...).
> > > I i comment that it works...
>
> > > Thanks for any Idea!!
> > > I nobody has something I will report that as a bug...
>
> > > Tomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-10 Thread Tokasa

Hi Bert,
thanks for your reply.

I have tried to raise memory limit from 8MB to 9MB and it works then
OK

Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
or I have to optimize something??
I know I can increase it e.g. up to 128MB but I dont know yet what
hosting company accepts...


Thanks
Tomas

On Sep 9, 12:25 pm, Bert Van den Brande  wrote:
> I think it also depends on what your own code is doing in
> "draw_form_item.ctp" on line 35 .
>
> Possibly the CakePHP upgrade requires a little bit of extra memory,
> and your script was already near the limit of 8MB using the previous
> CakePHP version ?
>
> Try raising the memory limit a bit and evaluate the outcome.
>
> Friendly greetings,
> Bert
>
> On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com wrote:
>
> > Hi, I have got some little issue and I would appreciate if anybody can
> > help me out :)
>
> > In some specific part PHP (not even cake I guess) gives me strange
> > error.
>
> > 
> > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> > allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
> > forms/draw_form_item.ctp on line 35
> > 
>
> > The thing I do no understand is that it occurs only between upgrade
> > from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>
> > On spring I started developing an application in cake 1.2.4.8004 ->
> > upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
> > this problems pops up going to higher version starting the 1.2.4.8284.
>
> > I have got two teories... my code was wrong and fortunately it worked
> > in older versions DUE to some old bug...
>
> > OR
>
> > developers had changed something significant...
>
> > There is something I have found in my debugging times... It may have
> > something to do with requestAction(...).
> > I i comment that it works...
>
> > Thanks for any Idea!!
> > I nobody has something I will report that as a bug...
>
> > Tomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread Bert Van den Brande

I think it also depends on what your own code is doing in
"draw_form_item.ctp" on line 35 .

Possibly the CakePHP upgrade requires a little bit of extra memory,
and your script was already near the limit of 8MB using the previous
CakePHP version ?

Try raising the memory limit a bit and evaluate the outcome.


Friendly greetings,
Bert

On Wed, Sep 9, 2009 at 11:12 AM, toka...@gmail.com wrote:
>
> Hi, I have got some little issue and I would appreciate if anybody can
> help me out :)
>
> In some specific part PHP (not even cake I guess) gives me strange
> error.
>
> 
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
> forms/draw_form_item.ctp on line 35
> 
>
> The thing I do no understand is that it occurs only between upgrade
> from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.
>
> On spring I started developing an application in cake 1.2.4.8004 ->
> upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
> this problems pops up going to higher version starting the 1.2.4.8284.
>
>
>
> I have got two teories... my code was wrong and fortunately it worked
> in older versions DUE to some old bug...
>
> OR
>
> developers had changed something significant...
>
>
> There is something I have found in my debugging times... It may have
> something to do with requestAction(...).
> I i comment that it works...
>
>
>
> Thanks for any Idea!!
> I nobody has something I will report that as a bug...
>
> Tomas
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread toka...@gmail.com

Hi, I have got some little issue and I would appreciate if anybody can
help me out :)

In some specific part PHP (not even cake I guess) gives me strange
error.


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 19456 bytes) in /Users/tokasa/www/project/app/views/elements/
forms/draw_form_item.ctp on line 35


The thing I do no understand is that it occurs only between upgrade
from 1.2.4.8166 to 1.2.4.8284 or even the newest 1.2.5.

On spring I started developing an application in cake 1.2.4.8004 ->
upgrade to 1.2.4.8120 -> 1.2.4.8166. and everythin was fine. As I said
this problems pops up going to higher version starting the 1.2.4.8284.



I have got two teories... my code was wrong and fortunately it worked
in older versions DUE to some old bug...

OR

developers had changed something significant...


There is something I have found in my debugging times... It may have
something to do with requestAction(...).
I i comment that it works...



Thanks for any Idea!!
I nobody has something I will report that as a bug...

Tomas



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---